Skip to content

Commit e780743

Browse files
committed
fix: there's no --voms switch to dirac-login
1 parent 267a436 commit e780743

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/DIRAC/FrameworkSystem/scripts/dirac_login.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def loginWithCertificate(self):
239239
if not self.certLoc or not self.keyLoc:
240240
if not (cakLoc := getCertificateAndKeyLocation()):
241241
if not self.authWith: # if user do not choose this way
242-
print(HTML("<yellow>Can't find user certificate and key</yellow>, trying to connact to DIRAC AS.."))
242+
print(HTML("<yellow>Can't find user certificate and key</yellow>, trying to connect to DIRAC AS.."))
243243
return self.doOAuthMagic() # Then try to use DIRAC AS
244244
return S_ERROR("Can't find user certificate and key")
245245
self.certLoc = self.certLoc or cakLoc[0]
@@ -363,9 +363,7 @@ def main():
363363
# It's server installation?
364364
if gConfig.useServerCertificate():
365365
# In this case you do not need to login.
366-
gLogger.notice(
367-
"You have run the command in a DIRAC server installation environment, which eliminates the need for login."
368-
)
366+
gLogger.notice("You should not need to run this command in a DIRAC server. Exiting.")
369367
DIRAC.exit(1)
370368

371369
userParams.group, userParams.scopes = Script.getPositionalArgs(group=True)

tests/System/transformation_replication.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
2626

2727
echo "dirac-login dirac_prod"
28-
dirac-login dirac_prod --VOMS
28+
dirac-login dirac_prod
2929
if [[ "${?}" -ne 0 ]]; then
3030
exit 1
3131
fi

0 commit comments

Comments
 (0)