acm: Allow remove of labels from suspended domains.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
Keir Fraser committed 2008-06-09 09:37:22 +01:00
1 parent 3e22cc46bb
commit 4c46d69b29
1 file changed
+2 -2
+2 -2
View 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'):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.