From c0aa459ce27fd8f659177b31137d4b4e26dfc652 Mon Sep 17 00:00:00 2001
From: Enrico Lusiani <enrico.lusiani@cern.ch>
Date: Mon, 12 Dec 2022 17:38:33 +0100
Subject: [PATCH] fix sequenceList and postSequenceList being the same object
 in prepare_DQM

---
 Configuration/Applications/python/ConfigBuilder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Configuration/Applications/python/ConfigBuilder.py b/Configuration/Applications/python/ConfigBuilder.py
index 0eb00a5504d73..9b3adf64f7704 100644
--- a/Configuration/Applications/python/ConfigBuilder.py
+++ b/Configuration/Applications/python/ConfigBuilder.py
@@ -1976,7 +1976,8 @@ def prepare_DQM(self, stepSpec = 'DQMOffline'):
         # any 'DQM' job should use DQMStore in non-legacy mode (but not HARVESTING)
         self.loadAndRemember("DQMServices/Core/DQMStoreNonLegacy_cff")
         _,_dqmSeq,_ = self.loadDefaultOrSpecifiedCFF(stepSpec,self.DQMOFFLINEDefaultCFF)
-        sequenceList=postSequenceList=_dqmSeq.split('+')
+        sequenceList=_dqmSeq.split('+')
+        postSequenceList=_dqmSeq.split('+')
         from DQMOffline.Configuration.autoDQM import autoDQM
         self.expandMapping(sequenceList,autoDQM,index=0)
         self.expandMapping(postSequenceList,autoDQM,index=1)