Skip to content
Snippets Groups Projects
Commit 5f01e6ad authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

watcher: Wait for child processes by default


This patch retains the behaviour of ganeti-watcher in previous Ganeti
versions.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent ecaf0a9c
No related branches found
No related tags found
No related merge requests found
......@@ -363,8 +363,12 @@ def ParseOptions():
" 6 hours)")
parser.add_option("--ignore-pause", dest="ignore_pause", default=False,
action="store_true", help="Ignore cluster pause setting")
parser.add_option("--wait-children", dest="wait_children", default=False,
parser.add_option("--wait-children", dest="wait_children",
action="store_true", help="Wait for child processes")
parser.add_option("--no-wait-children", dest="wait_children",
action="store_false", help="Don't wait for child processes")
# See optparse documentation for why default values are not set by options
parser.set_defaults(wait_children=True)
options, args = parser.parse_args()
options.job_age = cli.ParseTimespec(options.job_age)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment