Merge "[RBD] Fix snapshot backup name"
This commit is contained in:
commit
b2f1dcebf7
|
@ -805,7 +805,10 @@ class CephBackupDriver(driver.BackupDriver):
|
||||||
image.
|
image.
|
||||||
"""
|
"""
|
||||||
volume_id = backup.volume_id
|
volume_id = backup.volume_id
|
||||||
backup_name = self._get_backup_base_name(volume_id, backup=backup)
|
if backup.snapshot_id:
|
||||||
|
backup_name = self._get_backup_base_name(volume_id)
|
||||||
|
else:
|
||||||
|
backup_name = self._get_backup_base_name(volume_id, backup=backup)
|
||||||
|
|
||||||
with eventlet.tpool.Proxy(rbd_driver.RADOSClient(self,
|
with eventlet.tpool.Proxy(rbd_driver.RADOSClient(self,
|
||||||
backup.container)) as client:
|
backup.container)) as client:
|
||||||
|
|
Loading…
Reference in New Issue