mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
cloudstack: added fetch_list=True where appropriate (#40233)
This commit is contained in:
@@ -225,11 +225,12 @@ class AnsibleCloudStackInstanceFacts(AnsibleCloudStack):
|
||||
'domainid': self.get_domain(key='id'),
|
||||
'projectid': self.get_project(key='id'),
|
||||
'virtualmachineid': instance['id'],
|
||||
'fetch_list': True,
|
||||
}
|
||||
|
||||
volumes = self.query_api('listVolumes', **args)
|
||||
if volumes:
|
||||
for vol in volumes['volume']:
|
||||
for vol in volumes:
|
||||
volume_details.append({'size': vol['size'], 'type': vol['type'], 'name': vol['name']})
|
||||
return volume_details
|
||||
|
||||
|
||||
Reference in New Issue
Block a user