aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-29 16:45:05 -0400
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-06-29 16:45:05 -0400
commit5e1424650d3d987786633cc78a749d87e66f986d (patch)
tree67900aea16ca0d4d7575240068662bc4adb443b4
parent699447dcbd0b86656f742415c879c71d8c7f8fbd (diff)
downloadsteuermann-5e1424650d3d987786633cc78a749d87e66f986d.tar.gz
use sets in hostgroup
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@738 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-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] )
#####