diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-06-22 13:00:28 -0400 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-06-22 13:00:28 -0400 |
commit | 34e312010c9fddd400cb9102312c8fabe649a0ec (patch) | |
tree | 2c2758a669eb2d964393d839af527d4541792146 /steuermann/nodes.py | |
parent | a332bcf1944ca0b6825f013fb1545b9bd25d7d74 (diff) | |
download | steuermann-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.py | 4 |
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 : |