diff options
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 : |