summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_edit.py
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2018-02-01 21:32:37 -0500
committerGitHub <noreply@github.com>2018-02-01 21:32:37 -0500
commit1a2088262370c1226b0e8ecc39de570d388e0b1d (patch)
tree7e06948ac30c1c933ab2ea854aa24b370ab1d0e8 /roles/lib_openshift/library/oc_edit.py
parentef01824f57ed58e38eefc142a191b73ddfe7dda2 (diff)
parentc78f9763e1170f2b4bc4d85cb3a1ff5b3e668753 (diff)
downloadopenshift-1a2088262370c1226b0e8ecc39de570d388e0b1d.tar.gz
openshift-1a2088262370c1226b0e8ecc39de570d388e0b1d.tar.bz2
openshift-1a2088262370c1226b0e8ecc39de570d388e0b1d.tar.xz
openshift-1a2088262370c1226b0e8ecc39de570d388e0b1d.zip
Merge pull request #6959 from kwoodson/file_write_fix
Fixing file write issue.
Diffstat (limited to 'roles/lib_openshift/library/oc_edit.py')
-rw-r--r--roles/lib_openshift/library/oc_edit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_edit.py b/roles/lib_openshift/library/oc_edit.py
index 0cea07256..ab4f153c7 100644
--- a/roles/lib_openshift/library/oc_edit.py
+++ b/roles/lib_openshift/library/oc_edit.py
@@ -1152,7 +1152,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'):