From eb637147fb7bd5bddbc88159ddaf6b155d70153a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 15 Aug 2016 23:47:28 +0200 Subject: [PATCH] core2migration: adjust for recent storage API changes QubesVM.storage.vmdir uses QubesVM.dir_path, so can't be used directly as default value for dir_path. Use `super()`. --- qubes/core2migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/core2migration.py b/qubes/core2migration.py index 7ffd4ef8..3228887d 100644 --- a/qubes/core2migration.py +++ b/qubes/core2migration.py @@ -36,7 +36,7 @@ import qubes.ext.r3compatibility class AppVM(qubes.vm.appvm.AppVM): """core2 compatibility AppVM class, with variable dir_path""" dir_path = qubes.property('dir_path', - default=(lambda self: self.storage.vmdir), + default=(lambda self: super(AppVM, self).dir_path), saver=qubes.property.dontsave, doc="VM storage directory", ) @@ -47,7 +47,7 @@ class AppVM(qubes.vm.appvm.AppVM): class StandaloneVM(qubes.vm.standalonevm.StandaloneVM): """core2 compatibility StandaloneVM class, with variable dir_path""" dir_path = qubes.property('dir_path', - default=(lambda self: self.storage.vmdir), + default=(lambda self: super(StandaloneVM, self).dir_path), saver=qubes.property.dontsave, doc="VM storage directory")