diff --git a/lib/web/join_tokens.go b/lib/web/join_tokens.go index aac6ad380d407..5c32459f76d6f 100644 --- a/lib/web/join_tokens.go +++ b/lib/web/join_tokens.go @@ -640,7 +640,7 @@ func getJoinScript(ctx context.Context, settings scriptSettings, m nodeAPIGetter } suggestedLabels := token.GetSuggestedLabels() - appServerResourceLabels, err = scripts.MarshalLabelsYAML(suggestedLabels, 6) + appServerResourceLabels, err = scripts.MarshalLabelsYAML(suggestedLabels, 4) if err != nil { return "", trace.Wrap(err) } diff --git a/lib/web/scripts/node-join/install.sh b/lib/web/scripts/node-join/install.sh index b0b69cad16fab..2fb14dbb3c4d5 100755 --- a/lib/web/scripts/node-join/install.sh +++ b/lib/web/scripts/node-join/install.sh @@ -464,7 +464,7 @@ app_service: uri: "${APP_URI}" public_addr: ${APP_PUBLIC_ADDR} labels:{{range $index, $line := .appServerResourceLabels}} - {{$line -}} + {{$line -}} {{end}} EOF }