Commit db8e4554 by Czémán Arnold

vm: remove non-existent disk during recover

parent 9b04178a
Pipeline #172 passed with stage
in 0 seconds
...@@ -1353,6 +1353,7 @@ class RecoverOperation(InstanceOperation): ...@@ -1353,6 +1353,7 @@ class RecoverOperation(InstanceOperation):
disk.destroyed = None disk.destroyed = None
disk.save() disk.save()
else: else:
self.instance.disks.remove(disk)
not_restored.append(unicode(disk)) not_restored.append(unicode(disk))
self.instance.status = 'PENDING' self.instance.status = 'PENDING'
self.instance.save() self.instance.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment