mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
cloudstack_ssh: fix missing projectid if state=absent
This commit is contained in:
@@ -139,6 +139,7 @@ class AnsibleCloudStackSshKey(AnsibleCloudStack):
|
|||||||
self.result['changed'] = True
|
self.result['changed'] = True
|
||||||
args = {}
|
args = {}
|
||||||
args['name'] = self.module.params.get('name')
|
args['name'] = self.module.params.get('name')
|
||||||
|
args['projectid'] = self.get_project_id()
|
||||||
if not self.module.check_mode:
|
if not self.module.check_mode:
|
||||||
res = self.cs.deleteSSHKeyPair(**args)
|
res = self.cs.deleteSSHKeyPair(**args)
|
||||||
return ssh_key
|
return ssh_key
|
||||||
|
|||||||
Reference in New Issue
Block a user