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/src/lib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_openshift/src') diff --git a/roles/lib_openshift/src/lib/base.py b/roles/lib_openshift/src/lib/base.py index 1fb32164e..9a4ce3509 100644 --- a/roles/lib_openshift/src/lib/base.py +++ b/roles/lib_openshift/src/lib/base.py @@ -314,7 +314,7 @@ class Utils(object): ''' 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.3