]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rbd: decode parent_info() to str types for py3
authorJosh Durgin <jdurgin@redhat.com>
Thu, 12 Nov 2015 03:05:59 +0000 (19:05 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Fri, 13 Nov 2015 03:35:33 +0000 (19:35 -0800)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/pybind/rbd.py

index 78860c8c0d23f4228d20ad1b16baa0bdc3b5d4d1..9f2f47f8c07b12bcb390c0c79f7b8c830e6781dc 100644 (file)
@@ -611,7 +611,9 @@ class Image(object):
 
         if ret != 0:
             raise make_ex(ret, 'error getting parent info for image %s' % (self.name,))
-        return (pool.value, name.value, snapname.value)
+        return (decode_cstr(pool.value),
+                decode_cstr(name.value),
+                decode_cstr(snapname.value))
 
     def old_format(self):
         """