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_clusterrole.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_openshift/library/oc_clusterrole.py') diff --git a/roles/lib_openshift/library/oc_clusterrole.py b/roles/lib_openshift/library/oc_clusterrole.py index 9761b4b4e..0c4bfa01f 100644 --- a/roles/lib_openshift/library/oc_clusterrole.py +++ b/roles/lib_openshift/library/oc_clusterrole.py @@ -1102,7 +1102,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