From 7a59228342378bdfe5c9a6404a262569212d6279 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Wed, 20 Sep 2017 16:33:28 -0400 Subject: Returning actual results of yedit query. Empty list was returning empty dict. --- roles/lib_openshift/library/oc_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_openshift/library/oc_user.py') diff --git a/roles/lib_openshift/library/oc_user.py b/roles/lib_openshift/library/oc_user.py index 2fa349547..e430546ee 100644 --- a/roles/lib_openshift/library/oc_user.py +++ b/roles/lib_openshift/library/oc_user.py @@ -771,7 +771,7 @@ class Yedit(object): # pragma: no cover yamlfile.yaml_dict = content if params['key']: - rval = yamlfile.get(params['key']) or {} + rval = yamlfile.get(params['key']) return {'changed': False, 'result': rval, 'state': state} -- cgit v1.2.1