summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_serviceaccount_secret.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lib_openshift/library/oc_serviceaccount_secret.py')
-rw-r--r--roles/lib_openshift/library/oc_serviceaccount_secret.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_serviceaccount_secret.py b/roles/lib_openshift/library/oc_serviceaccount_secret.py
index 97e213f46..662d77ec1 100644
--- a/roles/lib_openshift/library/oc_serviceaccount_secret.py
+++ b/roles/lib_openshift/library/oc_serviceaccount_secret.py
@@ -711,7 +711,7 @@ class Yedit(object): # pragma: no cover
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}