summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2008-03-28 14:13:49 -0400
committerAdrian Likins <alikins@redhat.com>2008-03-28 14:13:49 -0400
commit4054792be014a9b7373a5b909f5052ab271c2307 (patch)
tree3cd0cbecad706d16d3483b2c071f101c607580e8 /examples
parent8bf00319db57ecfed8477f97e673248ff3d9e44a (diff)
downloadthird_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 'examples')
-rw-r--r--examples/drive_checker.py2
-rw-r--r--examples/find_recalled_parts.py2
-rw-r--r--examples/service_checker.py2
3 files changed, 3 insertions, 3 deletions
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: