Skip to content

Commit

Permalink
[k4run] ensure no duplicates are in the list of configurables
Browse files Browse the repository at this point in the history
With some job configurations, some tools are part of this list twice, and then raise an argumenterror when k4run tries to add their properties as command line arguments
  • Loading branch information
vvolkl committed Apr 30, 2021
1 parent c70bdc2 commit ac4c832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k4FWCore/scripts/k4run
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if __name__ == "__main__":
option_db = {}

# loop over all components that were configured in the options file
for conf in list(ApplicationMgr.allConfigurables.values()):
for conf in set(list(ApplicationMgr.allConfigurables.values())):
# skip public tools and the applicationmgr itself
if "ToolSvc" not in conf.name() and "ApplicationMgr" not in conf.name():
props = conf.getPropertiesWithDescription() #dict propertyname: (propertyvalue, propertydescription)
Expand Down

0 comments on commit ac4c832

Please sign in to comment.