From b937f9a79c3c2c8ae4b6b9fd1ddebb30789b5b4f Mon Sep 17 00:00:00 2001 From: Darren Worrall Date: Mon, 10 Aug 2015 20:59:28 +0100 Subject: [PATCH] Param fixes to associateIpAddress --- lib/ansible/modules/extras/cloud/cloudstack/cs_ip_address.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cs_ip_address.py b/lib/ansible/modules/extras/cloud/cloudstack/cs_ip_address.py index b635812694..2676df83d8 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cs_ip_address.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cs_ip_address.py @@ -172,7 +172,9 @@ class AnsibleCloudStackIPAddress(AnsibleCloudStack): def associate_ip_address(self): self.result['changed'] = True args = {} - args['account'] = self.get_account(key='id') + args['account'] = self.get_account(key='name') + args['domainid'] = self.get_domain(key='id') + args['projectid'] = self.get_project(key='id') args['networkid'] = self.get_network(key='id') args['zoneid'] = self.get_zone(key='id') ip_address = {}