From e71daafd8ea4ec703296383adc422e5d47982502 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 --- cloud/cloudstack/cs_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/cloudstack/cs_instance.py b/cloud/cloudstack/cs_instance.py index f8bef7c89e2..2204ad8dd16 100644 --- a/cloud/cloudstack/cs_instance.py +++ b/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: