summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorShreenidhi Shedi <53473811+sshedi@users.noreply.github.com>2021-09-14 01:11:45 +0530
committerGitHub <noreply@github.com>2021-09-13 14:41:45 -0500
commitf3cc94949d9f153b4a5135f8b989ff11b36ab7ea (patch)
treec22cead26514ce3904fe672efc7ab7ca7eb2c963 /cloudinit/config
parentf4c47e3e25d1fb79e2673e37f8fc67750d025be2 (diff)
downloadvyos-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-xcloudinit/config/cc_set_passwords.py2
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']: