This fixes the "AttributeError: 'rados.Ioctx' object has no attribute
'remove'" error.
Signed-off-by: Andreas Teuchert <a.teuchert@syseleven.de>
(cherry picked from commit
bb958f18af615377852d1579da936ea6c62d6056)
size, _mtime = ioctx.stat(SNAP_DB_OBJECT_NAME)
dump = ioctx.read(SNAP_DB_OBJECT_NAME, size).decode('utf-8')
db.executescript(dump)
- ioctx.remove(SNAP_DB_OBJECT_NAME)
+ ioctx.remove_object(SNAP_DB_OBJECT_NAME)
except rados.ObjectNotFound:
log.debug(f'No legacy schedule DB found in {fs}')
db.executescript(Schedule.CREATE_TABLES)