From 4054792be014a9b7373a5b909f5052ab271c2307 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 28 Mar 2008 14:13:49 -0400 Subject: 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. --- examples/drive_checker.py | 2 +- examples/find_recalled_parts.py | 2 +- examples/service_checker.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/drive_checker.py b/examples/drive_checker.py index f563c76..e51e378 100644 --- a/examples/drive_checker.py +++ b/examples/drive_checker.py @@ -7,7 +7,7 @@ import func.overlord.client as fc import func.utils as utils -info = fc.Client("*").smart.info() +info = fc.Overlord("*").smart.info() failures = 0 for (host,details) in info.iteritems(): diff --git a/examples/find_recalled_parts.py b/examples/find_recalled_parts.py index 45eb48e..36c4a7c 100644 --- a/examples/find_recalled_parts.py +++ b/examples/find_recalled_parts.py @@ -8,7 +8,7 @@ import func.utils as utils bad = open("./part_data.txt").read().split() -info = fc.Client("*").hardware.hal_info() +info = fc.Overlord("*").hardware.hal_info() for (host,details) in info.iteritems(): diff --git a/examples/service_checker.py b/examples/service_checker.py index 5541619..3dc683f 100644 --- a/examples/service_checker.py +++ b/examples/service_checker.py @@ -29,7 +29,7 @@ if __name__ == '__main__': sys.exit(1) # Get the information from the systems - info = fc.Client("*").service.status(service) + info = fc.Overlord("*").service.status(service) for (host, details) in info.iteritems(): status = "OFF" if details == 0: -- cgit