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