diff options
author | Adrian Likins <alikins@redhat.com> | 2008-03-28 14:13:49 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-03-28 14:13:49 -0400 |
commit | 4054792be014a9b7373a5b909f5052ab271c2307 (patch) | |
tree | 3cd0cbecad706d16d3483b2c071f101c607580e8 /func/overlord/inventory.py | |
parent | 8bf00319db57ecfed8477f97e673248ff3d9e44a (diff) | |
download | third_party-func-4054792be014a9b7373a5b909f5052ab271c2307.tar.gz third_party-func-4054792be014a9b7373a5b909f5052ab271c2307.tar.xz third_party-func-4054792be014a9b7373a5b909f5052ab271c2307.zip |
Changing func/func/overlord/client.py:Client() to Overlord(). Client() still
works but will dive a deprecation warning.
First pass at this refactor. I think just about everything has been updated, but
some questions remain. Like if client.py needs a name change.
Diffstat (limited to 'func/overlord/inventory.py')
-rwxr-xr-x | func/overlord/inventory.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/func/overlord/inventory.py b/func/overlord/inventory.py index 8302a1c..d1dcf67 100755 --- a/func/overlord/inventory.py +++ b/func/overlord/inventory.py @@ -76,7 +76,7 @@ class FuncInventory(object): self.git_setup(options) # see what modules each host provides (as well as what hosts we have) - host_methods = func_client.Client(options.server_spec).system.list_methods() + host_methods = func_client.Overlord(options.server_spec).system.list_methods() # call all remote info methods and handle them if options.verbose: @@ -106,8 +106,8 @@ class FuncInventory(object): if not "all" in filtered_function_list and not method_name in filtered_function_list: continue - client = func_client.Client(host,noglobs=True) # ,noglobs=True) - results = getattr(getattr(client,module_name),method_name)() + overlord = func_client.Overlord(host,noglobs=True) # ,noglobs=True) + results = getattr(getattr(overlord,module_name),method_name)() if self.options.verbose: print "-- %s: running: %s %s" % (host, module_name, method_name) self.save_results(options, host, module_name, method_name, results) |