Skip to content
Snippets Groups Projects
Commit 955f5d3a authored by scott snyder's avatar scott snyder
Browse files

AthenaConfiguration: Fix confTool behaviour for old configurations.

Previously, when reading old configurations, confTool would merge
together the two dictionaries that were written.  This is needed
for proper handling of JobOptionsSvc; the properties we want to compare
are those from the second dictionary.  (The first dictionary
contains properties such as the search path which we want to ignore.)
This was changed when confTool was unified for the old and new
configurations.  Tweak it to get back to the previous behavior.
parent 25a3072b
No related branches found
No related tags found
No related merge requests found
Pipeline #1953743 passed
......@@ -123,9 +123,9 @@ def _loadSingleFile(fname, args):
conf = [to_json, props[0], props[1]]
elif isinstance(cfg, collections.defaultdict): # old configuration
cfg.update(pickle.load(input_file))
conf.append(pickle.load(input_file))
conf.append(cfg)
for _ in range(2):
conf.append(pickle.load(input_file))
print("... Read", len(conf), "items from python pickle file: ", fname)
elif fname.endswith(".json"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment