From 1b4fbf4c013f9e08cef511f8b88b516d11fb275c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 25 Oct 2007 17:55:57 -0400 Subject: 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. --- func/overlord/func_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'func/overlord/func_command.py') 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): -- cgit