Commit 5da5eddb by Guba Sándor

storage: only snapshot need save_as, other objects can be returned

parent 65680e84
......@@ -478,7 +478,6 @@ class Disk(AclBase, TimeStampedModel):
mapping = {
'qcow2-snap': 'qcow2-norm',
'qcow2-norm': 'qcow2-norm',
if self.type not in mapping.keys():
raise self.WrongDiskTypeError(self.type)
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