Return nothing from volume backup restore
current code just fails, and apparently there's not so much useful info to atually return w/o making additinal API calls. So we at least exit with 0 now. Change-Id: Ic934e3b5aa6b35e6ee8caac42222b44624a34348 Closes-Bug: #2063335
This commit is contained in:
parent
a79cb608b0
commit
85e53c49b1
|
@ -516,7 +516,7 @@ class TestBackupRestore(TestBackup):
|
|||
volume_id=None,
|
||||
name=None,
|
||||
)
|
||||
self.assertIsNotNone(result)
|
||||
self.assertIsNone(result)
|
||||
|
||||
def test_backup_restore_with_volume(self):
|
||||
self.volume_sdk_client.find_volume.side_effect = (
|
||||
|
|
|
@ -434,7 +434,7 @@ class RestoreVolumeBackup(command.ShowOne):
|
|||
)
|
||||
raise exceptions.CommandError(msg % parsed_args.volume)
|
||||
|
||||
return volume_client.restore_backup(
|
||||
volume_client.restore_backup(
|
||||
backup.id,
|
||||
volume_id=volume_id,
|
||||
name=volume_name,
|
||||
|
|
Loading…
Reference in New Issue