OK I've modified the code to fix this

Code:

class MeritZenScriptBase(ZenScriptBase): 

    search = ""
    def buildOptions(self):
        ZenScriptBase.buildOptions(self)
        self.parser.add_option('--search', dest="search",default="", 
help="string to search for in event list")
        print "search option is: " + self.search




But, when I run the script with "--search=string", nothing is printed.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=26930#26930

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to