mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
ovirt: Don't return ID as list in fetch_nested (#39736)
* ovirt: Don't return ID as list in fetch_nested * ovirt_permissions_facts: Fix pylint
This commit is contained in:
committed by
Matt Martz
parent
3d5a7d6dc2
commit
39d9ff9d2c
@@ -89,7 +89,7 @@ def get_dict_of_struct(struct, connection=None, fetch_nested=False, attributes=N
|
|||||||
(attr, convert_value(getattr(i, attr)))
|
(attr, convert_value(getattr(i, attr)))
|
||||||
for attr in attributes if getattr(i, attr, None)
|
for attr in attributes if getattr(i, attr, None)
|
||||||
)
|
)
|
||||||
nested_obj['id'] = getattr(i, 'id', None),
|
nested_obj['id'] = getattr(i, 'id', None)
|
||||||
ret.append(nested_obj)
|
ret.append(nested_obj)
|
||||||
elif isinstance(i, Enum):
|
elif isinstance(i, Enum):
|
||||||
ret.append(str(i))
|
ret.append(str(i))
|
||||||
|
|||||||
Reference in New Issue
Block a user