Remote user is optional now in remote slaves.

This commit is contained in:
onovy 2015-03-30 20:13:39 +02:00
parent 784406a23d
commit b992f4277d
1 changed files with 4 additions and 0 deletions

View File

@ -1686,6 +1686,10 @@ function Init
# remove everything after '@'
_first_part=${uri%@*}
REMOTE_USER=${_first_part%;*}
if [ -n "$REMOTE_USER" ]
then
REMOTE_USER=$(id -un)
fi
#fingerprint=${_first_part#*fingerprint=}
if [ "$SSH_RSA_PRIVATE_KEY" == "" ]
then