From bb158fce5146b820c4574ae04de4a9a125f03fc4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 3 Oct 2017 12:30:47 +0200 Subject: [PATCH] library/roles/smartgears/smartgears/templates/get-scopes.j2: Do not fail when there is no token and the node must run on all the VOs. --- smartgears/smartgears/templates/get-scopes.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartgears/smartgears/templates/get-scopes.j2 b/smartgears/smartgears/templates/get-scopes.j2 index 248a4bc3..349f242d 100644 --- a/smartgears/smartgears/templates/get-scopes.j2 +++ b/smartgears/smartgears/templates/get-scopes.j2 @@ -24,8 +24,8 @@ if [ $# -eq 0 ] ; then if [ -f $SMARTGEARS_RUNNING_STATE_FILE ] ; then if [ "$SMARTGEARS_VO_AUTH" == 'true' ] ; then # - The node must run on all VOs - logger "$LOG_PREFIX When the node must run on all the VOs a valid token is mandatory, aborting" - exit 1 + logger "$LOG_PREFIX When the node must run on all the VOs a valid token is mandatory, aborting without doing anything" + exit 0 fi USE_SAVED_STATE=0 echo "No token, assuming that we can use the local state"