From b77fbdd90f46b3d1602aa43e99abec096d93888e Mon Sep 17 00:00:00 2001 From: Steve 'Ashcrow' Milner Date: Sun, 13 Jan 2008 14:35:45 -0500 Subject: removed a lot of misplaced shebangs. --- func/overlord/cmd_modules/ping.py | 8 +------- func/overlord/cmd_modules/show.py | 5 +---- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'func/overlord/cmd_modules') diff --git a/func/overlord/cmd_modules/ping.py b/func/overlord/cmd_modules/ping.py index 29fa9d0..397adc8 100644 --- a/func/overlord/cmd_modules/ping.py +++ b/func/overlord/cmd_modules/ping.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ copyfile command line @@ -15,7 +13,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. """ - import optparse import os import pprint @@ -28,11 +25,11 @@ from func.overlord import client # FIXME: this really should not be in each sub module. DEFAULT_PORT = 51234 + class Ping(client.command.Command): name = "ping" useage = "see what func minions are up/accessible" - def addOptions(self): """ Not too many options for you! (Seriously, it's a simple command ... func "*" ping) @@ -43,14 +40,12 @@ class Ping(client.command.Command): self.parser.add_option("-p", "--port", dest="port", default=DEFAULT_PORT) - def handleOptions(self, options): """ Nothing to do here... """ pass - def do(self, args): self.server_spec = self.parentCommand.server_spec @@ -72,4 +67,3 @@ class Ping(client.command.Command): print "[ FAILED ] %s" % server return 1 - diff --git a/func/overlord/cmd_modules/show.py b/func/overlord/cmd_modules/show.py index 9582e0d..4a26a75 100644 --- a/func/overlord/cmd_modules/show.py +++ b/func/overlord/cmd_modules/show.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - """ show introspection commandline @@ -73,6 +71,7 @@ class ShowHardware(client.command.Command): if arg in minion_data: print minion_data[arg] + class Show(client.command.Command): name = "show" useage = "various simple report stuff" @@ -98,5 +97,3 @@ class Show(client.command.Command): def do(self, args): pass - - -- cgit