The database role gets handled first, so the controller node gets removed
from the list and then when checking if multiple nodes were available, the
code path for a single controller didn't checked if the node was already
removed from the node list.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
fi
done
else
- # Only one controller
+ # Only one controller, check if it wasn't already taken care of.
NODE=${ROLE2NODES['controller']}
- deploynode $NODE "${NODES[$NODE]}" $BRANCH
- unset NODES[$NODE]
+ if [[ ! -z "${NODES[$NODE]:-}" ]]; then
+ deploynode $NODE "${NODES[$NODE]}" $BRANCH
+ unset NODES[$NODE]
+ fi
fi
if [[ -n "$BALANCER" ]] ; then