Revision c5cd9637
b/qa/ganeti-qa.py | ||
---|---|---|
655 | 655 |
parser.add_option("--yes-do-it", dest="yes_do_it", |
656 | 656 |
action="store_true", |
657 | 657 |
help="Really execute the tests") |
658 |
(qa_config.options, args) = parser.parse_args()
|
|
658 |
(opts, args) = parser.parse_args()
|
|
659 | 659 |
|
660 | 660 |
if len(args) == 1: |
661 | 661 |
(config_file, ) = args |
662 | 662 |
else: |
663 | 663 |
parser.error("Wrong number of arguments.") |
664 | 664 |
|
665 |
if not qa_config.options.yes_do_it:
|
|
665 |
if not opts.yes_do_it:
|
|
666 | 666 |
print ("Executing this script irreversibly destroys any Ganeti\n" |
667 | 667 |
"configuration on all nodes involved. If you really want\n" |
668 | 668 |
"to start testing, supply the --yes-do-it option.") |
b/qa/qa_config.py | ||
---|---|---|
40 | 40 |
|
41 | 41 |
|
42 | 42 |
cfg = {} |
43 |
options = None |
|
44 | 43 |
|
45 | 44 |
|
46 | 45 |
def Load(path): |
Also available in: Unified diff