diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-09-20 16:33:28 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-09-20 19:37:48 -0400 |
commit | 7a59228342378bdfe5c9a6404a262569212d6279 (patch) | |
tree | 034e90ae42d985dea7c466a9d3faa0d98e33051d /roles/lib_utils/library | |
parent | 4f5839e585a78243eae2d215176047299c52a1eb (diff) | |
download | openshift-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.py | 2 |
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} |