From 1d0ce5c5ea00a5c5a09e6637ea9cb896d6f47dea Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Sat, 28 Mar 2015 10:58:02 +0100 Subject: [PATCH] cloudstack_ssh: fix missing projectid if state=absent --- lib/ansible/modules/extras/cloud/cloudstack/cloudstack_sshkey.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cloudstack_sshkey.py b/lib/ansible/modules/extras/cloud/cloudstack/cloudstack_sshkey.py index 414ded6c971..97d6a222f09 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cloudstack_sshkey.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cloudstack_sshkey.py @@ -139,6 +139,7 @@ class AnsibleCloudStackSshKey(AnsibleCloudStack): self.result['changed'] = True args = {} args['name'] = self.module.params.get('name') + args['projectid'] = self.get_project_id() if not self.module.check_mode: res = self.cs.deleteSSHKeyPair(**args) return ssh_key