summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/library
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-09-20 16:33:28 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-09-20 19:37:48 -0400
commit7a59228342378bdfe5c9a6404a262569212d6279 (patch)
tree034e90ae42d985dea7c466a9d3faa0d98e33051d /roles/lib_utils/library
parent4f5839e585a78243eae2d215176047299c52a1eb (diff)
downloadopenshift-7a59228342378bdfe5c9a6404a262569212d6279.tar.gz
openshift-7a59228342378bdfe5c9a6404a262569212d6279.tar.bz2
openshift-7a59228342378bdfe5c9a6404a262569212d6279.tar.xz
openshift-7a59228342378bdfe5c9a6404a262569212d6279.zip
Returning actual results of yedit query. Empty list was returning empty dict.
Diffstat (limited to 'roles/lib_utils/library')
-rw-r--r--roles/lib_utils/library/yedit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/library/yedit.py b/roles/lib_utils/library/yedit.py
index 921bca074..cf5c2e423 100644
--- a/roles/lib_utils/library/yedit.py
+++ b/roles/lib_utils/library/yedit.py
@@ -793,7 +793,7 @@ class Yedit(object):
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}