From 3c13a4f30f247f4aa75c02c65e6bb6e575e30d01 Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Tue, 2 Oct 2007 18:34:02 -0300 Subject: Exit program after listing minions. --- overlord/client.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'overlord/client.py') diff --git a/overlord/client.py b/overlord/client.py index 378df02..133aafa 100755 --- a/overlord/client.py +++ b/overlord/client.py @@ -284,7 +284,7 @@ class FuncCommandLine(command.Command): if options.list_minions: self.list_minions() - # ----------------------------------------------- + sys.exit(0) # stop execution def list_minions(self): print "Minions:" @@ -293,18 +293,3 @@ class FuncCommandLine(command.Command): for cert in certs: host = cert.replace(self.config.certroot, "")[1:-5] print " %s" % host - -# =================================================================== - -if __name__ == "__main__": - # this is what /usr/bin/func will run - myname, argv = sys.argv[0], sys.argv[1:] - cli = FuncCommandLine() - rc = cli.do() - sys.exit(rc) -# cli = FuncCommandLine(myname,argv) - -# rc = cli.run() - sys.exit(rc) - - -- cgit