From 5f48b76b27d24b6b35e0217d458c9c2076452461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 10 Feb 2016 17:01:51 +0100 Subject: [PATCH] storage: fix vm.create_on_disk for non-template based VMs --- qubes/storage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index 5cba5e42..dc0b0b2d 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -210,7 +210,7 @@ class Storage(object): raise NotImplementedError() 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 old_umask = os.umask(002)