diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2018-01-31 13:34:56 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2018-01-31 13:34:56 -0500 |
commit | c78f9763e1170f2b4bc4d85cb3a1ff5b3e668753 (patch) | |
tree | 99a9917e8ddc1ab1023ad6078b0092beb28de5de /roles/lib_openshift/library/oc_scale.py | |
parent | 510b5ac41308225f01be96309eda6efc67a90467 (diff) | |
download | openshift-c78f9763e1170f2b4bc4d85cb3a1ff5b3e668753.tar.gz openshift-c78f9763e1170f2b4bc4d85cb3a1ff5b3e668753.tar.bz2 openshift-c78f9763e1170f2b4bc4d85cb3a1ff5b3e668753.tar.xz openshift-c78f9763e1170f2b4bc4d85cb3a1ff5b3e668753.zip |
Fixing file write issue.
Diffstat (limited to 'roles/lib_openshift/library/oc_scale.py')
-rw-r--r-- | roles/lib_openshift/library/oc_scale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_scale.py b/roles/lib_openshift/library/oc_scale.py index c142f1f43..1b6202a26 100644 --- a/roles/lib_openshift/library/oc_scale.py +++ b/roles/lib_openshift/library/oc_scale.py @@ -1106,7 +1106,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'): |