]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-daemon: make StringIO usage py2 compatible
authorSage Weil <sage@redhat.com>
Wed, 30 Oct 2019 15:33:52 +0000 (10:33 -0500)
committerSage Weil <sage@redhat.com>
Wed, 30 Oct 2019 18:29:49 +0000 (13:29 -0500)
commit749a0bdb61ff8f3ec11119e14e85dfd2ee78ec33
tree479f8ca9f9548c2ebb4e0eefb503f66d72907f8f
parent93570a501b0f7efe3c451f2e543af4eb579ea206
ceph-daemon: make StringIO usage py2 compatible

Otherwise,

Traceback (most recent call last):
  File "../src/ceph-daemon", line 1698, in <module>
    r = args.func()
  File "../src/ceph-daemon", line 767, in command_bootstrap
    with StringIO() as f:
AttributeError: StringIO instance has no attribute '__exit__'

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon