storage: fix vm.create_on_disk for non-template based VMs
This commit is contained in:
parent
539a46ca9a
commit
5f48b76b27
@ -210,7 +210,7 @@ class Storage(object):
|
|||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def create_on_disk(self, source_template=None):
|
def create_on_disk(self, source_template=None):
|
||||||
if source_template is None:
|
if source_template is None and hasattr(self.vm, 'template'):
|
||||||
source_template = self.vm.template
|
source_template = self.vm.template
|
||||||
|
|
||||||
old_umask = os.umask(002)
|
old_umask = os.umask(002)
|
||||||
|
Loading…
Reference in New Issue
Block a user