cloudstack: fix KeyError: 'public_ip' in cs_instance

This commit is contained in:
Rene Moser 2015-08-08 15:40:05 +02:00
parent 22d209ee64
commit e71daafd8e

View file

@ -732,7 +732,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
if 'instancename' in instance:
self.result['instance_name'] = instance['instancename']
if 'publicip' in instance:
self.result['public_ip'] = instance['public_ip']
self.result['public_ip'] = instance['publicip']
if 'passwordenabled' in instance:
self.result['password_enabled'] = instance['passwordenabled']
if 'password' in instance: