On Tue, Jul 7, 2009 at 12:47 PM, Michael Hanselmann<[email protected]> wrote: > 2009/7/7 Guido Trotter <[email protected]>: >> --- a/scripts/gnt-cluster >> +++ b/scripts/gnt-cluster >> @@ -424,7 +424,17 @@ def MasterFailover(opts, args): >> @return: the desired exit code >> >> """ >> - return bootstrap.MasterFailover() >> + if opts.skip_voting: >> + sys.stdout.write("The 'no voting' option has been selected.\n") >> + sys.stdout.write("This is dangerous, please confirm by" >> + " typing uppercase 'yes': ") >> + sys.stdout.flush() >> + confirmation = sys.stdin.readline().strip() >> + if confirmation != "YES": >> + print "Aborting." >> + return > > Can't you use cli.AskUser for this? >
true, actually... I got to this because masterd wasn't using it and... :) Will resend Guido
