Skip to content

Commit 78c8155

Browse files
chaenweb-flow
authored andcommitted
sweep: #6764 dirac-configure warning about existing file
1 parent afb6a45 commit 78c8155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DIRAC/Core/scripts/dirac_configure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,8 @@ def runDiracConfigure(params):
593593
mkDir(configDir)
594594
params.update = True
595595
DIRAC.gConfig.dumpLocalCFGToFile(params.outputFile)
596+
elif not params.forceUpdate:
597+
DIRAC.gLogger.notice(f"{params.outputFile} exists, not overwriting it. Or use the '--ForceUpdate' Flag")
596598

597599
if params.includeAllServers:
598600
# We need user proxy or server certificate to continue in order to get all the CS URLs

0 commit comments

Comments
 (0)