mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user