From c78f9763e1170f2b4bc4d85cb3a1ff5b3e668753 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Wed, 31 Jan 2018 13:34:56 -0500 Subject: Fixing file write issue. --- roles/lib_openshift/library/oc_adm_csr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_openshift/library/oc_adm_csr.py') diff --git a/roles/lib_openshift/library/oc_adm_csr.py b/roles/lib_openshift/library/oc_adm_csr.py index 324f52689..c78e379d5 100644 --- a/roles/lib_openshift/library/oc_adm_csr.py +++ b/roles/lib_openshift/library/oc_adm_csr.py @@ -1116,7 +1116,7 @@ class Utils(object): # pragma: no cover ''' Actually write the file contents to disk. This helps with mocking. ''' with open(filename, 'w') as sfd: - sfd.write(contents) + sfd.write(str(contents)) @staticmethod def create_tmp_file_from_contents(rname, data, ftype='yaml'): -- cgit v1.2.1