[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.0.4-testing] Only try to label resources if ACM is enabled.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1166273683 0
# Node ID f944e13ce50ae59a0d39cf52e19519af4d1ef694
# Parent  fb6db3c9ae7408b472ec0743c318de870b41006a
Only try to label resources if ACM is enabled.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/xm-test/lib/XmTestLib/acm.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r fb6db3c9ae74 -r f944e13ce50a tools/xm-test/lib/XmTestLib/acm.py
--- a/tools/xm-test/lib/XmTestLib/acm.py        Sat Dec 16 12:52:18 2006 +0000
+++ b/tools/xm-test/lib/XmTestLib/acm.py        Sat Dec 16 12:54:43 2006 +0000
@@ -57,6 +57,8 @@ def ACMLabelResources(resources):
 
 # Applications may label resources explicitly by calling this function
 def ACMLabelResource(resource, label='red'):
+    if not isACMEnabled():
+        return
     if acm_verbose:
         print "labeling resource %s with label %s" % (resource, label)
     if not ACM_LABEL_RESOURCES:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.