diff options
author | Shreenidhi Shedi <53473811+sshedi@users.noreply.github.com> | 2021-09-14 01:11:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 14:41:45 -0500 |
commit | f3cc94949d9f153b4a5135f8b989ff11b36ab7ea (patch) | |
tree | c22cead26514ce3904fe672efc7ab7ca7eb2c963 /cloudinit/config | |
parent | f4c47e3e25d1fb79e2673e37f8fc67750d025be2 (diff) | |
download | vyos-cloud-init-f3cc94949d9f153b4a5135f8b989ff11b36ab7ea.tar.gz vyos-cloud-init-f3cc94949d9f153b4a5135f8b989ff11b36ab7ea.zip |
Improve ug_util.py (#1013)
No functional changes.
Diffstat (limited to 'cloudinit/config')
-rwxr-xr-x | cloudinit/config/cc_set_passwords.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py index 433de751..803a3aa9 100755 --- a/cloudinit/config/cc_set_passwords.py +++ b/cloudinit/config/cc_set_passwords.py @@ -133,7 +133,7 @@ def handle_ssh_pwauth(pw_auth, service_cmd=None, service_name="ssh"): def handle(_name, cfg, cloud, log, args): - if len(args) != 0: + if args: # if run from command line, and give args, wipe the chpasswd['list'] password = args[0] if 'chpasswd' in cfg and 'list' in cfg['chpasswd']: |