cloudstack_ssh: fix missing projectid if state=absent

pull/18777/head
Rene Moser 10 years ago committed by Matt Clay
parent 742d581261
commit 1d0ce5c5ea

@ -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

Loading…
Cancel
Save