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
pull/40193/head
Ondra Machacek 7 years ago 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))

Loading…
Cancel
Save