Fix syntax for $is_cloud test

This commit is contained in:
weslambert
2023-03-30 13:26:36 -04:00
committed by GitHub
parent d4cba6908e
commit 3e08506c4e

View File

@@ -55,7 +55,7 @@ add_interface_bond0() {
fi
done
if ! [[ is_cloud ]]; then
if ! [[ $is_cloud ]]; then
# Check if the bond slave connection has already been created
nmcli -f name,uuid -p con | grep -q "bond0-slave-$BNIC"
local found_int=$?
@@ -77,7 +77,7 @@ add_interface_bond0() {
ip link set dev "$BNIC" arp off multicast off allmulticast off promisc on
if ! [[ is_cloud ]]; then
if ! [[ $is_cloud ]]; then
# Bring the slave interface up
if [[ $verbose == true ]]; then
nmcli con up "bond0-slave-$BNIC"