storage: fix handling standalone VMs
Currently Standalone have template=None.
This commit is contained in:
parent
a73c694f54
commit
8262f2ef4b
@ -72,7 +72,8 @@ class XenStorage(qubes.storage.Storage):
|
|||||||
@property
|
@property
|
||||||
def root_img(self):
|
def root_img(self):
|
||||||
'''Path to the root image'''
|
'''Path to the root image'''
|
||||||
return self.vm.template.storage.root_img if hasattr(self.vm, 'template') \
|
return self.vm.template.storage.root_img \
|
||||||
|
if hasattr(self.vm, 'template') and self.vm.template \
|
||||||
else self.abspath(qubes.config.vm_files['root_img'])
|
else self.abspath(qubes.config.vm_files['root_img'])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user