aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-06-09 09:37:22 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-06-09 09:37:22 +0100
commit4c46d69b2948c96561ae9e5eeccc786a02830302 (patch)
tree5039a7a05011741c6dfa455365d18958a4048f4d /tools
parent3e22cc46bb03b7be6662644d132a890837d9824f (diff)
downloadxen-4c46d69b2948c96561ae9e5eeccc786a02830302.tar.gz
xen-4c46d69b2948c96561ae9e5eeccc786a02830302.tar.bz2
xen-4c46d69b2948c96561ae9e5eeccc786a02830302.zip
acm: Allow remove of labels from suspended domains.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 9381ad78c2..8a97bad326 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -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'):