cloudstack: fix KeyError: 'public_ip' in cs_instance
This commit is contained in:
parent
a5047c70c8
commit
ab00c9aacc
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
|
||||||
if 'instancename' in instance:
|
if 'instancename' in instance:
|
||||||
self.result['instance_name'] = instance['instancename']
|
self.result['instance_name'] = instance['instancename']
|
||||||
if 'publicip' in instance:
|
if 'publicip' in instance:
|
||||||
self.result['public_ip'] = instance['public_ip']
|
self.result['public_ip'] = instance['publicip']
|
||||||
if 'passwordenabled' in instance:
|
if 'passwordenabled' in instance:
|
||||||
self.result['password_enabled'] = instance['passwordenabled']
|
self.result['password_enabled'] = instance['passwordenabled']
|
||||||
if 'password' in instance:
|
if 'password' in instance:
|
||||||
|
|
Loading…
Reference in a new issue