cloud: ovirt: Add support to list nested entities parameters (#19300)

This commit is contained in:
Ondra Machacek 2016-12-14 17:15:50 +01:00 committed by Ryan Brown
commit fa96438f4c
15 changed files with 102 additions and 17 deletions

View file

@ -88,7 +88,12 @@ def main():
changed=False,
ansible_facts=dict(
ovirt_datacenters=[
get_dict_of_struct(c) for c in datacenters
get_dict_of_struct(
struct=d,
connection=connection,
fetch_nested=module.params.get('fetch_nested'),
attributes=module.params.get('nested_attributes'),
) for d in datacenters
],
),
)