Skip to content

Commit 489186f

Browse files
Merge pull request #45 from yashgiri/master
StringIO -> six.BytesIO python2/3 fix
2 parents 4c148e0 + d18e393 commit 489186f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ansible/roles/openshift_client_python/library/openshift_client_python.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ansible/roles/openshift_client_python/library/openshift_client_python.template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from ansible.module_utils.basic import AnsibleModule
77

88
import os
9-
import StringIO
9+
import six
1010
import tempfile
1111
import shutil
1212
import tarfile
@@ -71,7 +71,7 @@ def main():
7171
# and replace the following variable with a b64 encoded tarball of the openshift-client-library
7272
# package. The client_python_extract_dir path will contain the 'openshift' package directory.
7373
REPLACED_BY_REBUILD_MODULE = '{}'
74-
OPENSHIFT_CLIENT_PYTHON_TGZ = StringIO.StringIO(base64.b64decode(REPLACED_BY_REBUILD_MODULE))
74+
OPENSHIFT_CLIENT_PYTHON_TGZ = six.BytesIO(base64.b64decode(REPLACED_BY_REBUILD_MODULE))
7575

7676
module = AnsibleModule(
7777
argument_spec=dict(

0 commit comments

Comments
 (0)