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? Regards, Michael
