From: Stephen Soltesz Date: Thu, 19 Nov 2009 20:42:07 +0000 (+0000) Subject: add checkpcu option to findall.py & clarify help text. X-Git-Tag: Monitor-3.0-25~5 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=fc9068f6a15adbfd5b37bce5d223e0f83578fa06 add checkpcu option to findall.py & clarify help text. --- diff --git a/findall.py b/findall.py index e96c1c4..d2af9b1 100755 --- a/findall.py +++ b/findall.py @@ -16,7 +16,7 @@ if __name__ == '__main__': parser = parsermodule.getParser(['nodesets']) parser.set_defaults( increment=False, dbname="findbad", cachenodes=False, - force=False, pcuselect=None, pcuid=None, pcu=None) + force=False, pcuselect=None, pcuid=None, pcu=None, checkpcu=False) parser.add_option("", "--cachenodes", action="store_true", help="Cache node lookup from PLC") parser.add_option("", "--dbname", dest="dbname", metavar="FILE", @@ -25,6 +25,8 @@ if __name__ == '__main__': help="Increment round number to force refresh or retry") parser.add_option("", "--force", action="store_true", dest="force", help="Force probe without incrementing global 'round'.") + parser.add_option("", "--checkpcu", dest="checkpcu", action="store_true", + help="whether to include PCUs in the site status") parser = parsermodule.getParser(['defaults'], parser) diff --git a/sitebad.py b/sitebad.py index 24c446b..a779a8e 100755 --- a/sitebad.py +++ b/sitebad.py @@ -164,7 +164,7 @@ if __name__ == '__main__': parser.add_option("", "--sitelist", dest="sitelist", help="Provide a list of sites separated by ','") parser.add_option("", "--checkpcu", dest="checkpcu", action="store_true", - help="Provide a list of sites separated by ','") + help="whether to include PCUs in the site status") config = parsermodule.parse_args(parser)