storage: fix storage.import_data_end when given Volume instance
Leftover from '0f12870 storage: use direct object references, not only identifiers'
This commit is contained in:
parent
8d8bbb99e9
commit
3338854b1c
@ -660,8 +660,7 @@ class Storage(object):
|
||||
assert isinstance(volume, (Volume, str)), \
|
||||
"You need to pass a Volume or pool name as str"
|
||||
if isinstance(volume, Volume):
|
||||
return volume.import_data_end(volume,
|
||||
success=success)
|
||||
return volume.import_data_end(success=success)
|
||||
|
||||
return self.vm.volumes[volume].import_data_end(success=success)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user