From c461835ea78b695de35237ace843e9567abe6ebc Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 18 Mar 2011 22:19:03 -0400 Subject: [PATCH] Dont allow to change disable 'updateable' flag of standalone VM --- dom0/qvm-core/qubes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 1db1ad05..d6821923 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -973,6 +973,12 @@ class QubesCowVm(QubesVm): raise QubesException ("Change 'updateable' flag is not supported. Please use qvm-create.") + def set_nonupdateable(self): + if self.is_updateable(): + return + + raise QubesException ("Change 'updateable' flag is not supported. Please use qvm-create.") + def create_config_file(self): conf_template = None if self.type == "NetVM":