aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--steuermann/nodes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/steuermann/nodes.py b/steuermann/nodes.py
index 23f5d0b..c7d4262 100644
--- a/steuermann/nodes.py
+++ b/steuermann/nodes.py
@@ -401,12 +401,12 @@ def add_hostgroup( name, host ) :
if host.startswith('@') :
new = get_hostgroup(host)
else :
- new = set( [ host ] )
+ new = [ host ]
- hostgroups[name] |= new
+ hostgroups[name] |= set( new )
def get_hostgroup( name ) :
- return hostgroups[name]
+ return list( hostgroups[name] )
#####