summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/src
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/src
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/src')
-rw-r--r--roles/lib_utils/src/class/yedit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/src/class/yedit.py b/roles/lib_utils/src/class/yedit.py
index 957c35a06..0a4fbe07a 100644
--- a/roles/lib_utils/src/class/yedit.py
+++ b/roles/lib_utils/src/class/yedit.py
@@ -590,7 +590,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}