Commit 2a91985c by Dudás Ádám

vm: apply DRY principle

parent 62ad3366
...@@ -401,7 +401,7 @@ class Instance(VirtualMachineDescModel, TimeStampedModel): ...@@ -401,7 +401,7 @@ class Instance(VirtualMachineDescModel, TimeStampedModel):
It is always on the first hard drive storage named cloud-<id>.dump It is always on the first hard drive storage named cloud-<id>.dump
""" """
path = self.disks.all()[0].datastore.path path = self.disks.all()[0].datastore.path
return path + '/' + 'cloud-' + str(self.id) + '.dump' return path + '/' + self.vm_name + '.dump'
@property @property
def primary_host(self): def primary_host(self):
......
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