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_label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_openshift/library/oc_label.py') diff --git a/roles/lib_openshift/library/oc_label.py b/roles/lib_openshift/library/oc_label.py index ad837fdb5..ac3279ef8 100644 --- a/roles/lib_openshift/library/oc_label.py +++ b/roles/lib_openshift/library/oc_label.py @@ -1128,7 +1128,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