Skip to content

Commit

Permalink
GlobalTag*.py: sort the additional payloads
Browse files Browse the repository at this point in the history
Sort the additional payloads from release-level or user-level customisations to the global tags,
to ensure a consistent hash of the process configuration.
  • Loading branch information
fwyzard committed Jul 21, 2014
1 parent 48f05fc commit dc7a930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configuration/AlCa/python/GlobalTag.py
Expand Up @@ -118,7 +118,7 @@ def GlobalTag(essource = None, globaltag = None, conditions = None):

# explicit payloads toGet from DB
if custom_conditions:
for ( (record, label), (tag, connection) ) in custom_conditions.iteritems():
for ( (record, label), (tag, connection) ) in sorted(custom_conditions.iteritems()):
payload = cms.PSet()
payload.record = cms.string( record )
if label:
Expand Down
2 changes: 1 addition & 1 deletion Configuration/AlCa/python/GlobalTag_condDBv2.py
Expand Up @@ -119,7 +119,7 @@ def GlobalTag(essource = None, globaltag = None, conditions = None):

# explicit payloads toGet from DB
if custom_conditions:
for ( (record, label), (tag, connection) ) in custom_conditions.iteritems():
for ( (record, label), (tag, connection) ) in sorted(custom_conditions.iteritems()):
payload = cms.PSet()
payload.record = cms.string( record )
if label:
Expand Down

0 comments on commit dc7a930

Please sign in to comment.