diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-07-11 16:47:16 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-07-11 16:47:16 -0400 |
commit | 5c713b017d2af83da11f7b77e188fd0c2686b3c3 (patch) | |
tree | 9f788799d81aa824e0570ad1fcfe4ca6ead86cb6 /func/overlord/client.py | |
parent | 3d5afc45bf2c80b8f83d3c3b3849ae0c98fa6264 (diff) | |
download | func-5c713b017d2af83da11f7b77e188fd0c2686b3c3.tar.gz func-5c713b017d2af83da11f7b77e188fd0c2686b3c3.tar.xz func-5c713b017d2af83da11f7b77e188fd0c2686b3c3.zip |
Removing stray print message
Diffstat (limited to 'func/overlord/client.py')
-rwxr-xr-x | func/overlord/client.py | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/func/overlord/client.py b/func/overlord/client.py index 01a31a7..4cb8216 100755 --- a/func/overlord/client.py +++ b/func/overlord/client.py @@ -16,7 +16,7 @@ import sys import glob import os -import yaml +import func.yaml as yaml from certmaster.commonconfig import CMConfig from func.config import read_config, CONFIG_FILE @@ -67,24 +67,6 @@ class CommandAutomagic(object): method = ".".join(self.base[1:]) 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 - # =================================== # this is a module level def so we can use it and isServer() from # other modules with a Overlord class @@ -193,8 +175,8 @@ class Overlord(object): if self.delegate: try: - mapstream = file(self.mapfile, 'r') - self.minionmap = yaml.load(mapstream) + mapstream = file(self.mapfile, 'r').read() + self.minionmap = yaml.load(mapstream).next() except e: sys.stderr.write("mapfile load failed, switching delegation off") self.delegate = False @@ -396,7 +378,6 @@ class Overlord(object): # expanded = expand_servers(self.server_spec, port=self.port, noglobs=True, verbose=self.verbose)[0] expanded_minions = Minions(spec, port=self.port, noglobs=True, verbose=self.verbose) minions = expanded_minions.get_urls()[0] -# print minions results = process_server(0, 0, minions) if use_delegate: @@ -437,6 +418,4 @@ class Overlord(object): class Client(Overlord): def __init__(self, *args, **kwargs): Overlord.__init__(self, *args, **kwargs) - # we can remove this if folks want -akl - print "Client() class is deprecated, please use the Overlord() class." - + # provided for backward compatibility only |