mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
cloudstack: added fetch_list=True where appropriate (#40233)
This commit is contained in:
@@ -192,11 +192,12 @@ class AnsibleCloudStackAccount(AnsibleCloudStack):
|
||||
args = {
|
||||
'listall': True,
|
||||
'domainid': self.get_domain(key='id'),
|
||||
'fetch_list': True,
|
||||
}
|
||||
accounts = self.query_api('listAccounts', **args)
|
||||
if accounts:
|
||||
account_name = self.module.params.get('name')
|
||||
for a in accounts['account']:
|
||||
for a in accounts:
|
||||
if account_name == a['name']:
|
||||
self.account = a
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user