func/overlord

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 func/overlord/cmd_modules/show.py |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit c7ea92da476ffbe5bd926c84c620be0683a26e45
Author: S.Ã?aÄ?lar Onur <caglar@xxxxxxxxxxxxxxxx>
Date:   Mon Jul 26 13:40:20 2010 -0400

    Solve "AttributeError: Show instance has no attribute 'conffile'" error

diff --git a/func/overlord/cmd_modules/show.py b/func/overlord/cmd_modules/show.py
index 67b201e..15e238f 100644
--- a/func/overlord/cmd_modules/show.py
+++ b/func/overlord/cmd_modules/show.py
@@ -31,12 +31,28 @@ class Show(base_command.BaseCommand):
     def addOptions(self):
         self.parser.add_option("-v", "--verbose", dest="verbose",
                                action="store_true")
+        self.parser.add_option('-t', '--timeout', dest="timeout", type="float",
+                               help="Set default socket timeout in seconds")
+        self.parser.add_option('-e', '--exclude', dest="exclude",
+                               help="exclude some of minions",
+                               action="store",
+                               type="string")
+        self.parser.add_option('-c', '--conf', dest="conffile",
+                               help="specify an overlord.conf file for func to use")
 
     def handleOptions(self, options):
         self.options = options
 
         self.verbose = options.verbose
 
+        if options.timeout:
+            self.socket_timeout = options.timeout
+
+        if options.exclude:
+            self.exclude_spec = options.exclude
+
+        if options.conffile:
+            self.conffile = options.conffile
 
     def parse(self, argv):
         self.argv = argv


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux