]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology: s/cStringIO.StringIO/six.StringIO/
authorKefu Chai <kchai@redhat.com>
Sun, 5 Apr 2020 13:06:40 +0000 (21:06 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 5 Apr 2020 13:19:13 +0000 (21:19 +0800)
to be py3 compatible. this addresses the failure of
```
2020-04-05T12:35:02.036 INFO:teuthology.run_tasks:Running task ssh_keys...
2020-04-05T12:35:02.050 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_py3/teuthology/run_tasks.py", line 86, in run_tasks
    manager = run_one_task(taskname, ctx=ctx, config=config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_py3/teuthology/run_tasks.py", line 64, in run_one_task
    task = get_task(taskname)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_py3/teuthology/run_tasks.py", line 28, in get_task
    module = _import('tasks', module_name, task_name, fail_on_import_error=True)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_py3/teuthology/run_tasks.py", line 52, in _import
    0,
ImportError: No module named 'tasks.ssh_keys'
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/orchestra/test/integration/test_integration.py
teuthology/task/hadoop.py
teuthology/task/ssh_keys.py

index 804def3b629ac61de20a25f019773de91d483acb..9064341aa6e75185c69c2e64bab7008a3ecc973c 100644 (file)
@@ -1,7 +1,7 @@
 from teuthology.orchestra import monkey
 monkey.patch_all()
 
-from cStringIO import StringIO
+from six import StringIO
 
 import os
 from teuthology.orchestra import connection, remote, run
index 66949a3bbead1f450ffe4d87056bbb6df7f5b3c5..20e1cd32eba465ce816bee9cba3430be9cbffa01 100644 (file)
@@ -1,4 +1,4 @@
-from cStringIO import StringIO
+from six import StringIO
 import contextlib
 import logging
 from teuthology import misc as teuthology
index ee49074d5f8da1c6140d0d512313b71078371d1c..0b734db4984cdd857377ed85ab781dcdc55ca439 100644 (file)
@@ -8,7 +8,7 @@ import paramiko
 import re
 from datetime import datetime
 
-from cStringIO import StringIO
+from six import StringIO
 from teuthology import contextutil
 import teuthology.misc as misc
 from teuthology.orchestra import run