Skip to content

Commit 162384e

Browse files
committed
fix (dirac-login): set default proxy lifetime
1 parent 4b16b98 commit 162384e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/FrameworkSystem/scripts/dirac_login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def loginWithCertificate(self):
276276
proxy = copy.copy(chain)
277277

278278
# Create local proxy with group
279-
result = chain.generateProxyToFile(self.outputFile, int(self.lifetime) * 3600, self.group)
279+
result = chain.generateProxyToFile(self.outputFile, int(self.lifetime or 12) * 3600, self.group)
280280
if not result["OK"]:
281281
return S_ERROR(f"Couldn't generate proxy: {result['Message']}")
282282

0 commit comments

Comments
 (0)