It is only used in one place and not necessary.
---
qa/ganeti-qa.py | 4 ++--
qa/qa_config.py | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/qa/ganeti-qa.py b/qa/ganeti-qa.py
index 7d4262c..1563164 100755
--- a/qa/ganeti-qa.py
+++ b/qa/ganeti-qa.py
@@ -655,14 +655,14 @@ def main():
parser.add_option("--yes-do-it", dest="yes_do_it",
action="store_true",
help="Really execute the tests")
- (qa_config.options, args) = parser.parse_args()
+ (opts, args) = parser.parse_args()
if len(args) == 1:
(config_file, ) = args
else:
parser.error("Wrong number of arguments.")
- if not qa_config.options.yes_do_it:
+ if not opts.yes_do_it:
print ("Executing this script irreversibly destroys any Ganeti\n"
"configuration on all nodes involved. If you really want\n"
"to start testing, supply the --yes-do-it option.")
diff --git a/qa/qa_config.py b/qa/qa_config.py
index 6c4e3f5..cf69750 100644
--- a/qa/qa_config.py
+++ b/qa/qa_config.py
@@ -40,7 +40,6 @@ _EXCLUSIVE_STORAGE_KEY = "_exclusive_storage"
cfg = {}
-options = None
def Load(path):
--
1.8.1