acm: Allow remove of labels from suspended domains.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Jun 2008 08:37:22 +0000 (09:37 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Jun 2008 08:37:22 +0000 (09:37 +0100)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xend/XendDomainInfo.py

index 9381ad78c2f0821d531984d134b7ebd6acdcd594..8a97bad326706f20ceffd1a67fadd5c189758fdd 100644 (file)
@@ -2891,9 +2891,9 @@ class XendDomainInfo:
                      DOM_STATES[state])
             return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0)
 
-        # Remove security label. Works only for halted domains
+        # Remove security label. Works only for halted or suspended domains
         if not seclab or seclab == "":
-            if state not in [ DOM_STATE_HALTED ]:
+            if state not in [ DOM_STATE_HALTED, DOM_STATE_SUSPENDED ]:
                 return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0)
 
             if self.info.has_key('security_label'):