mirror of
https://github.com/ceph/ceph
synced 2025-03-10 02:09:21 +00:00
qa/tasks/qemu: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
This commit is contained in:
parent
e7473b631d
commit
914c0816e6
@ -1,7 +1,6 @@
|
||||
"""
|
||||
Qemu task
|
||||
"""
|
||||
from cStringIO import StringIO
|
||||
|
||||
import contextlib
|
||||
import logging
|
||||
@ -172,7 +171,7 @@ def generate_iso(ctx, config):
|
||||
user_data = user_data.format(
|
||||
ceph_branch=ctx.config.get('branch'),
|
||||
ceph_sha1=ctx.config.get('sha1'))
|
||||
teuthology.write_file(remote, userdata_path, StringIO(user_data))
|
||||
teuthology.write_file(remote, userdata_path, user_data)
|
||||
|
||||
with open(os.path.join(src_dir, 'metadata.yaml'), 'rb') as f:
|
||||
teuthology.write_file(remote, metadata_path, f)
|
||||
|
Loading…
Reference in New Issue
Block a user