mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
cloudstack: added fetch_list=True where appropriate (#40233)
This commit is contained in:
parent
44eaa2c007
commit
912e07a036
17 changed files with 50 additions and 29 deletions
|
@ -141,12 +141,13 @@ class AnsibleCloudStackDomain(AnsibleCloudStack):
|
|||
path = "root/" + path
|
||||
|
||||
args = {
|
||||
'listall': True
|
||||
'listall': True,
|
||||
'fetch_list': True,
|
||||
}
|
||||
|
||||
domains = self.query_api('listDomains', **args)
|
||||
if domains:
|
||||
for d in domains['domain']:
|
||||
for d in domains:
|
||||
if path == d['path'].lower():
|
||||
return d
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue