Skip to content

Commit 82ae0f3

Browse files
Merge pull request #55 from bradmwilliams/tempfile-encoding
Fixing encoding issue when running local oc
2 parents 38605fb + c4ed559 commit 82ae0f3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

ansible/rebuild_module.digest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2d44f0cb1cab372ccfe30a3a72a8ca63 -
1+
beba445971676e714868c715f59c07e0 -

ansible/roles/openshift_client_python/library/openshift_client_python.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/cluster_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def create_test_project(suffix, port):
280280
try:
281281
check_online_network_multitenant()
282282
check_prevents_cron_jobs()
283-
check_online_project_constraints
283+
check_online_project_constraints()
284284
except:
285285
logging.fatal('Error occurred during tests')
286286
traceback.print_exc()

packages/openshift/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __enter__(self):
4545

4646
if self.content:
4747
try:
48-
self.file.write(self.content)
48+
self.file.write(self.content.encode('utf-8'))
4949
self.flush()
5050
self.file.seek(0, os.SEEK_SET) # seek to the beginning of the file
5151
except Exception:

0 commit comments

Comments
 (0)