Make ganeti-watcher use the standard debug option
authorIustin Pop <iustin@google.com>
Thu, 17 Sep 2009 12:58:53 +0000 (14:58 +0200)
committerIustin Pop <iustin@google.com>
Fri, 18 Sep 2009 10:53:52 +0000 (12:53 +0200)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

daemons/ganeti-watcher

index 1e29f64..e77db0c 100755 (executable)
@@ -462,9 +462,7 @@ def ParseOptions():
                         version="%%prog (ganeti) %s" %
                         constants.RELEASE_VERSION)
 
-  parser.add_option("-d", "--debug", dest="debug",
-                    help="Write all messages to stderr",
-                    default=False, action="store_true")
+  parser.add_option(cli.DEBUG_OPT)
   parser.add_option("-A", "--job-age", dest="job_age",
                     help="Autoarchive jobs older than this age (default"
                     " 6 hours)", default=6*3600)