Merge pull request #30314 from Songweibin/wip-rbd-pybind

rbd/pybind: fix unsupported format character of %lx

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
This commit is contained in:
Jason Dillaman 2019-09-17 11:16:50 -04:00 committed by GitHub
commit 9e773faa1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3441,7 +3441,7 @@ cdef class Image(object):
with nogil:
ret = rbd_snap_remove2(self.image, _name, _flags, prog_cb, NULL)
if ret != 0:
raise make_ex(ret, 'error removing snapshot %s from %s with flags %llx' % (name, self.name, flags))
raise make_ex(ret, 'error removing snapshot %s from %s with flags %lx' % (name, self.name, flags))
def remove_snap_by_id(self, snap_id):
"""