Commit a262e19a by Dudás Ádám

storage: fix filename of iso images in get_exclusive()

parent 587bde3b
......@@ -86,7 +86,7 @@ class Disk(TimeStampedModel):
if self.type in ['qcow2-snap', 'raw-rw']:
raise self.WrongDiskTypeError(self.type)
filename = str(uuid.uuid4())
filename = self.filename if self.type == 'iso' else str(uuid.uuid4())
new_type = {
'qcow2-norm': 'qcow2-snap',
'iso': 'iso',
......
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