mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add debug logging to dockerng.login
This can be used with debug logging enabled to troubleshoot which registries this function is attempting to authenticate.
This commit is contained in:
parent
7160697123
commit
bd27870a71
1 changed files with 4 additions and 0 deletions
|
@ -1899,6 +1899,10 @@ def login(*registries):
|
|||
cmd = ['docker', 'login', '-u', username, '-p', password]
|
||||
if registry.lower() != 'hub':
|
||||
cmd.append(registry)
|
||||
log.debug(
|
||||
'Attempting to login to docker registry \'%s\' as user \'%s\'',
|
||||
registry, username
|
||||
)
|
||||
login_cmd = __salt__['cmd.run_all'](
|
||||
cmd,
|
||||
python_shell=False,
|
||||
|
|
Loading…
Add table
Reference in a new issue