diff --git a/daemons/ganeti-masterd b/daemons/ganeti-masterd index 6a73e4e23ea8fbab8ac4b853be5008c44d853b70..7456d4e6eab0632a5b18f0b803cb45e4b77a47d9 100755 --- a/daemons/ganeti-masterd +++ b/daemons/ganeti-masterd @@ -396,6 +396,10 @@ def ParseOptions(): help="Do not check that the nodes agree on this node" " being the master and start the daemon unconditionally", default=False, action="store_true") + parser.add_option("--yes-do-it", dest="yes_do_it", + help="Override interactive check for --no-voting", + default=False, action="store_true") + options, args = parser.parse_args() return options, args @@ -472,7 +476,7 @@ def main(): ssconf.CheckMaster(options.debug) # we believe we are the master, let's ask the other nodes... - if options.no_voting: + if options.no_voting and not options.yes_do_it: sys.stdout.write("The 'no voting' option has been selected.\n") sys.stdout.write("This is dangerous, please confirm by" " typing uppercase 'yes': ") @@ -481,7 +485,7 @@ def main(): if confirmation != "YES": print "Aborting." return - else: + elif not options.no_voting: if not CheckAgreement(): return