summaryrefslogtreecommitdiffstats
path: root/func/overlord/client.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-02-12 12:55:40 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-02-12 12:55:40 -0500
commitbca510c2645ff24e5373dc0e7ff978ba7184693d (patch)
tree382244b194a4a89dbae3a78344fdbf53f22de436 /func/overlord/client.py
parent745205f6a225b391eef790274f776d8d38694908 (diff)
downloadthird_party-func-bca510c2645ff24e5373dc0e7ff978ba7184693d.tar.gz
third_party-func-bca510c2645ff24e5373dc0e7ff978ba7184693d.tar.xz
third_party-func-bca510c2645ff24e5373dc0e7ff978ba7184693d.zip
move some methods into the Groups class.
Diffstat (limited to 'func/overlord/client.py')
-rwxr-xr-xfunc/overlord/client.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/func/overlord/client.py b/func/overlord/client.py
index cf1009c..9eef8b1 100755
--- a/func/overlord/client.py
+++ b/func/overlord/client.py
@@ -64,22 +64,22 @@ class CommandAutomagic(object):
return self.clientref.run(module,method,args,nforks=self.nforks)
-def get_groups():
- group_class = groups.Groups()
- return group_class.get_groups()
-
-
-def get_hosts_by_groupgoo(groups, groupgoo):
- group_gloobs = groupgoo.split(':')
- hosts = []
- for group_gloob in group_gloobs:
- if not group_gloob[0] == "@":
- continue
- if groups.has_key(group_gloob[1:]):
- hosts = hosts + groups[group_gloob[1:]]
- else:
- print "group %s not defined" % group_gloob
- return hosts
+#def get_groups():
+# group_class = groups.Groups()
+# return group_class.get_groups()
+
+
+#def get_hosts_by_groupgoo(groups, groupgoo):
+# group_gloobs = groupgoo.split(':')
+# hosts = []
+# for group_gloob in group_gloobs:
+# if not group_gloob[0] == "@":
+# continue
+# if groups.has_key(group_gloob[1:]):
+# hosts = hosts + groups[group_gloob[1:]]
+# else:
+# print "group %s not defined" % group_gloob
+# return hosts
# ===================================
# this is a module level def so we can use it and isServer() from
@@ -102,13 +102,13 @@ def expand_servers(spec, port=51234, noglobs=None, verbose=None, just_fqdns=Fals
else:
return spec
- group_dict = get_groups()
+ group_class = groups.Groups()
all_hosts = []
all_certs = []
seperate_gloobs = spec.split(";")
- new_hosts = get_hosts_by_groupgoo(group_dict, spec)
+ new_hosts = group_class.get_hosts_by_groupgoo(spec)
seperate_gloobs = spec.split(";")
seperate_gloobs = seperate_gloobs + new_hosts