to be consistent with
8bfe977854686149c74de3ebaed7b571d43404dd
Fixes: https://tracker.ceph.com/issues/45246
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
2de78c3bd9eed9bec235b68e8e52b4635e9add61)
qa/tasks: Add missing StringIO import
This is directly fixed in octopus since it's needed
to get the dashboard backend API tests running
based on the previous commits of this PR.
There is a fix in master but this one
uses "from io import StringIO" while
we still need to be python2 compatible in octopus.
So this import is done with "six" (expects str in python2
instead of "io" (expects unicode
in python2).
This import line is not cherry-picked from master
due to the above mentioned reasons.
Signed-off-by: Laura Paduano <lpaduano@suse.com>
"""
+from six import StringIO
from io import BytesIO
from collections import defaultdict
import getpass
if watch_channel is not None:
args.append("--watch-channel")
args.append(watch_channel)
- proc = self.controller.run(args=args, wait=False, stdout=BytesIO())
+ proc = self.controller.run(args=args, wait=False, stdout=StringIO())
return proc
def raw_cluster_cmd(self, *args, **kwargs):