Skip to content

Commit

Permalink
Merge pull request #25 from lucas-akira/TCB-477
Browse files Browse the repository at this point in the history
registryops: Fix --login-to arg behavior when using default registry
  • Loading branch information
jsrc27 authored Aug 16, 2024
2 parents a429d29 + 889ceb9 commit 6edcba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcbuilder/backend/registryops.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _setup_credentials(self):
self.login = (username, password)
elif len(_login) == 3:
reg, username, password = _login
if reg == self.registry:
if (reg == self.registry) or (reg == DEFAULT_REGISTRY):
self.login = (username, password)
else:
assert False, "Unhandled condition in _setup_credentials()"
Expand Down

0 comments on commit 6edcba9

Please sign in to comment.