[PATCH] Minor fix for show hardware

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

 



 Currently:

 func '*' show hardware

...shows nothing, attached patch fixes it via. brute force.
 You can also pull from http://people.redhat.com/jantill/gits/func

-- 
James Antill <james@xxxxxxxxxxxxxxxxx>
diff --git a/func/overlord/cmd_modules/show.py b/func/overlord/cmd_modules/show.py
index 22bac95..5f327de 100644
--- a/func/overlord/cmd_modules/show.py
+++ b/func/overlord/cmd_modules/show.py
@@ -68,18 +68,7 @@ class ShowHardware(client.command.Command):
         top_options = ["port","verbose"]
         
         # figure out of the user set any options we care about
-        options_set = False
-
-        #ugh, cant find a better way to do this. Look for args
-        # that specify a "mode", if we set them, then don't
-        # do the big dump
-
-        # also, optparse is annoying -akl
-        opt_list = ["--platform", "--memory", "--os"]
-        for opt in opt_list:
-            if self.parser.has_option(opt):
-                options_set = True
-        
+        options_set = self.options.platform or self.options.memory or self.options.os
 
         for minion in results:
             print "%s:" % minion

[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