From 39d9ff9d2ca440024debf6f019d7975262cf57ef Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Fri, 4 May 2018 18:40:17 +0200 Subject: [PATCH] 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 --- lib/ansible/module_utils/ovirt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ovirt.py b/lib/ansible/module_utils/ovirt.py index e1563d4fb8a..87496c14242 100644 --- a/lib/ansible/module_utils/ovirt.py +++ b/lib/ansible/module_utils/ovirt.py @@ -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))