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_utils/src/class/yedit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_utils/src') 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} -- cgit v1.2.3