From 5e1424650d3d987786633cc78a749d87e66f986d Mon Sep 17 00:00:00 2001 From: sienkiew Date: Fri, 29 Jun 2012 20:45:05 +0000 Subject: use sets in hostgroup git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@738 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'steuermann/nodes.py') 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] ) ##### -- cgit