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:
Ondra Machacek 2018-05-04 18:40:17 +02:00 committed by Matt Martz
parent 3d5a7d6dc2
commit 39d9ff9d2c

View file

@ -89,7 +89,7 @@ def get_dict_of_struct(struct, connection=None, fetch_nested=False, attributes=N
(attr, convert_value(getattr(i, attr)))
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)
elif isinstance(i, Enum):
ret.append(str(i))