From ab00c9aacc370ffa5668dc93cfc0b39f192d4d77 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Sat, 8 Aug 2015 15:40:05 +0200 Subject: [PATCH] cloudstack: fix KeyError: 'public_ip' in cs_instance --- lib/ansible/modules/extras/cloud/cloudstack/cs_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cs_instance.py b/lib/ansible/modules/extras/cloud/cloudstack/cs_instance.py index a02fecd1e6..f9bb79fb82 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cs_instance.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cs_instance.py @@ -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: