1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloudstack_ssh: fix missing projectid if state=absent

This commit is contained in:
Rene Moser 2015-03-28 10:58:02 +01:00 committed by Matt Clay
parent 742d581261
commit 1d0ce5c5ea

View file

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