Skip to contentSkip to conversation

Only label a resource if ACM is enabled

PATCH Applied Stefan Berger 2 participants 2 messages Dec 16, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Only label a resource if ACM is enabled

Only try to label resources if ACM is enabled.

tools/xm-test/lib/XmTestLib/acm.py +2 -0
diff -r c6f637694b85 tools/xm-test/lib/XmTestLib/acm.py
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel