aboutsummaryrefslogtreecommitdiff
path: root/steuermann/nodes.py
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-22 13:00:28 -0400
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-22 13:00:28 -0400
commit34e312010c9fddd400cb9102312c8fabe649a0ec (patch)
tree2c2758a669eb2d964393d839af527d4541792146 /steuermann/nodes.py
parenta332bcf1944ca0b6825f013fb1545b9bd25d7d74 (diff)
downloadsteuermann-34e312010c9fddd400cb9102312c8fabe649a0ec.tar.gz
defining a hostgroup defaults it to blank, even if no IF matches
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@730 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/nodes.py')
-rw-r--r--steuermann/nodes.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/steuermann/nodes.py b/steuermann/nodes.py
index 51f3264..bd273bf 100644
--- a/steuermann/nodes.py
+++ b/steuermann/nodes.py
@@ -395,9 +395,11 @@ def check_condition( name, filename ) :
hostgroups = { }
-def add_hostgroup( name, host ) :
+def define_hostgroup( name ) :
if not name in hostgroups :
hostgroups[name] = [ ]
+
+def add_hostgroup( name, host ) :
if host.startswith('@') :
new = get_hostgroup(host)
else :