[fix] Padding 3->4 spaces, don't use lookup_pillar before salt is installed

This commit is contained in:
William Wernert
2021-01-15 08:57:05 -05:00
parent 07b5f1d23e
commit f4de5e28bf
2 changed files with 3 additions and 5 deletions

View File

@@ -861,9 +861,6 @@ configure_network_sensor() {
local nmcli_con_args=( "type" "bond" "mode" "0" ) local nmcli_con_args=( "type" "bond" "mode" "0" )
fi fi
local MTU
MTU=$(lookup_pillar "mtu" "sensor")
# Create the bond interface only if it doesn't already exist # Create the bond interface only if it doesn't already exist
nmcli -f name,uuid -p con | grep -q "$INTERFACE" >> "$setup_log" 2>&1 nmcli -f name,uuid -p con | grep -q "$INTERFACE" >> "$setup_log" 2>&1
local found_int=$? local found_int=$?
@@ -2250,6 +2247,7 @@ sensor_pillar() {
if [[ $NSMSETUP != 'ADVANCED' ]]; then if [[ $NSMSETUP != 'ADVANCED' ]]; then
if [[ $is_cloud ]]; then MTU=1575; else MTU=1500; fi if [[ $is_cloud ]]; then MTU=1575; else MTU=1500; fi
fi fi
export MTU
# Create the sensor pillar # Create the sensor pillar
printf '%s\n'\ printf '%s\n'\