summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_set_passwords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py
index 5b72224b..ab266741 100644
--- a/cloudinit/config/cc_set_passwords.py
+++ b/cloudinit/config/cc_set_passwords.py
@@ -96,9 +96,9 @@ def handle(_name, cfg, cloud, log, args):
pw_auth = None
if 'ssh_pwauth' in cfg:
change_pwauth = True
- if util.is_true_str(cfg['ssh_pwauth']):
+ if util.is_true(cfg['ssh_pwauth']):
pw_auth = 'yes'
- if util.is_false_str(cfg['ssh_pwauth']):
+ if util.is_false(cfg['ssh_pwauth']):
pw_auth = 'no'
if change_pwauth: