diff --git a/setup/so-functions b/setup/so-functions index 3f48cbd78..3bff5d542 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1637,13 +1637,14 @@ manager_pillar() { printf '%s\n'\ " kratoskey: '$KRATOSKEY'"\ "" >> "$pillar_file" - - if [[ -n $ENDGAMEHOST ]]; then - printf '%s\n'\ - "soc:"\ - " endgamehost: '$ENDGAMEHOST'"\ - " es_index_patterns: '*:so-*,*:endgame-*'"\ - "" >> "$pillar_file" + printf '%s\n'\ + "soc:"\ + " es_index_patterns: '*:so-*,*:endgame-*'"\ + "" >> "$pillar_file" + if [[ -n $ENDGAMEHOST ]]; then + printf '%s\n'\ + " endgamehost: '$ENDGAMEHOST'"\ + "" >> "$pillar_file" fi }