summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2013-07-16 15:21:26 -0600
committerBen Howard <ben.howard@canonical.com>2013-07-16 15:21:26 -0600
commite2e5becb83827e741bfaaeac5edc1c7937718faa (patch)
tree6c2cd64c70761738d5bf9db746329e19beb12a5c
parent8c15320283012d218c2165f5dfb38a29d2cf7b53 (diff)
downloadvyos-cloud-init-e2e5becb83827e741bfaaeac5edc1c7937718faa.tar.gz
vyos-cloud-init-e2e5becb83827e741bfaaeac5edc1c7937718faa.zip
Use the inverse of DisableSshPasswordAuthentication for ssh_pwauth.
(LP: 1201969)
-rw-r--r--cloudinit/sources/DataSourceAzure.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 2818408c..5071ee67 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -313,7 +313,10 @@ def read_azure_ovf(contents):
elif name == "ssh":
cfg['_pubkeys'] = load_azure_ovf_pubkeys(child)
elif name == "disablesshpasswordauthentication":
- cfg['ssh_pwauth'] = util.is_true(value)
+ # The verb 'disablessh..." asks whether to disable password auth.
+ # Since it is disabled by default, "false" indicates that
+ # password authentication should be enabled.
+ cfg['ssh_pwauth'] = util.is_false(value)
elif simple:
if name in md_props:
md[name] = value