DataSourceAzure: fix inverted logic on DisablesshPasswordAuthentication

DisablesshPasswordAuthentication == True
means that ssh_pwauth should be disabled rather than enabled.
This commit is contained in:
Ben Howard
2013-07-17 08:21:29 -04:00
committed by Scott Moser

View File

@@ -313,7 +313,7 @@ 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)
cfg['ssh_pwauth'] = util.is_false(value)
elif simple:
if name in md_props:
md[name] = value