summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-01-10 12:49:32 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-01-10 15:00:09 +0100
commit9585e84e841486ead677c45e441d40368f51032a (patch)
tree667ee93848d81c39c39a58e30afdde406fb8b721 /roles/lib_utils
parentfa2ea50c05f61dc14858ee4d9c5ca44552733313 (diff)
downloadopenshift-9585e84e841486ead677c45e441d40368f51032a.tar.gz
openshift-9585e84e841486ead677c45e441d40368f51032a.tar.bz2
openshift-9585e84e841486ead677c45e441d40368f51032a.tar.xz
openshift-9585e84e841486ead677c45e441d40368f51032a.zip
docker_creds: fix python3 exception
Fixes: Object of type 'bytes' is not JSON serializable Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'roles/lib_utils')
-rw-r--r--roles/lib_utils/library/docker_creds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/library/docker_creds.py b/roles/lib_utils/library/docker_creds.py
index e6f178525..b94c0b779 100644
--- a/roles/lib_utils/library/docker_creds.py
+++ b/roles/lib_utils/library/docker_creds.py
@@ -151,7 +151,7 @@ def write_config(module, docker_config, dest):
conf_file_path = os.path.join(dest, 'config.json')
try:
with open(conf_file_path, 'w') as conf_file:
- json.dump(docker_config, conf_file, indent=8)
+ json.dump(docker_config.decode(), conf_file, indent=8)
except IOError as ioerror:
result = {'failed': True,
'changed': False,