aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-11 14:41:37 -0400
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-11 14:41:37 -0400
commitc54600b9b7411d52d02a7ed143cef0fa38305755 (patch)
treefc4a573fc30bfd99bb8485444341ab954e5701a8
parenteb1820177e2bd2641337a25fd15f1f275add4476 (diff)
downloadsteuermann-c54600b9b7411d52d02a7ed143cef0fa38305755.tar.gz
clarify notes
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@714 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r--NOTES5
1 files changed, 4 insertions, 1 deletions
diff --git a/NOTES b/NOTES
index 77e6814..e8daf48 100644
--- a/NOTES
+++ b/NOTES
@@ -66,10 +66,14 @@ The new HOSTGROUP feature works like this:
# defines a set of conditions - each condition is a python function in a CONDITIONS block
CONDITIONS
+ # for a function, the truth value is the return value
def foo() :
return True
def bar() :
return False
+
+ # for anything else, it is just the value:
+ baz = platform.node.endswith('.stsci.edu')
END
# the END must be on a line by itself
@@ -85,7 +89,6 @@ TABLE whatever HOST @xyz banana
# defines table whatever to be on all the hosts in xyz and the host banana
...
-hostgroup is implemented up to here.
In your AFTER clause, you can write it as