diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-25 17:55:57 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-25 17:55:57 -0400 |
commit | 1b4fbf4c013f9e08cef511f8b88b516d11fb275c (patch) | |
tree | d0caab329728a72375328680ffd02b469a086733 /func/overlord/func_command.py | |
parent | f260d08b05f263c0bb92937e18996c4b3caba1c4 (diff) | |
download | third_party-func-1b4fbf4c013f9e08cef511f8b88b516d11fb275c.tar.gz third_party-func-1b4fbf4c013f9e08cef511f8b88b516d11fb275c.tar.xz third_party-func-1b4fbf4c013f9e08cef511f8b88b516d11fb275c.zip |
Added a ping function to the test module and a new command "func '*' ping" which can be used to see
what servers are contactable from the command line for any given operation, without needing to run
an otherwise meaningful command on them. Note that it does try to contact each server before showing
results, so ideally we should provide a method in the client class to get the system list and create
the client objects seperately for each contact, so output can stream back one line at a time. TBA.
Diffstat (limited to 'func/overlord/func_command.py')
-rw-r--r-- | func/overlord/func_command.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/func/overlord/func_command.py b/func/overlord/func_command.py index b33565c..1a13233 100644 --- a/func/overlord/func_command.py +++ b/func/overlord/func_command.py @@ -11,6 +11,7 @@ from cmd_modules import call from cmd_modules import show from cmd_modules import copyfile from cmd_modules import listminions +from cmd_modules import ping from func.overlord import client @@ -19,7 +20,7 @@ class FuncCommandLine(command.Command): useage = "func is the commandline interface to a func minion" subCommandClasses = [call.Call, show.Show, - copyfile.CopyFile, listminions.ListMinions] + copyfile.CopyFile, listminions.ListMinions, ping.Ping] def __init__(self): |