diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-26 15:18:46 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-26 15:18:46 -0400 |
commit | c7a55aabe8d99ac6ddc8e4884d8b7a404b0ac291 (patch) | |
tree | 9eac3255071532f3abdfcdedd36527ff38e5db10 /overlord/test_func.py | |
parent | 411b3213fd42ea8c7cc13bda6923393a18130295 (diff) | |
download | func-c7a55aabe8d99ac6ddc8e4884d8b7a404b0ac291.tar.gz func-c7a55aabe8d99ac6ddc8e4884d8b7a404b0ac291.tar.xz func-c7a55aabe8d99ac6ddc8e4884d8b7a404b0ac291.zip |
Adding a noglobs=True/False parameter to the client. When set to True, the return codes assume
the server specification is NOT a glob and return a single value instead of a hash. This minimizes
code when needing to address only one system at a time. The command line will always assume globs are
possible and will not use this shortcut.
Diffstat (limited to 'overlord/test_func.py')
-rw-r--r-- | overlord/test_func.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/overlord/test_func.py b/overlord/test_func.py index d759a2e..f3d0c61 100644 --- a/overlord/test_func.py +++ b/overlord/test_func.py @@ -15,7 +15,9 @@ TEST_SMART = True if TEST_GETATTR: import func.overlord.client as func_client - print func_client.Client("*").hardware.info() + #print func_client.Client("*").hardware.info() + #print func_client.Client("*").run("hardware","info",[]) + print func_client.Client("mdehaan.rdu.redhat.com",noglobs=True).test.add("1","2") sys.exit(1) # get a connecton (to be replaced by client lib logic) |