ia64/xen-unstable

changeset 17795:4eba2151d38b

acm: Allow remove of labels from suspended domains.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jun 09 09:37:22 2008 +0100 (2008-06-09)
parents 9126c09738da
children 1de5d17497fd
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Jun 09 09:36:27 2008 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Jun 09 09:37:22 2008 +0100
     1.3 @@ -2891,9 +2891,9 @@ class XendDomainInfo:
     1.4                       DOM_STATES[state])
     1.5              return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0)
     1.6  
     1.7 -        # Remove security label. Works only for halted domains
     1.8 +        # Remove security label. Works only for halted or suspended domains
     1.9          if not seclab or seclab == "":
    1.10 -            if state not in [ DOM_STATE_HALTED ]:
    1.11 +            if state not in [ DOM_STATE_HALTED, DOM_STATE_SUSPENDED ]:
    1.12                  return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0)
    1.13  
    1.14              if self.info.has_key('security_label'):