mirror of https://github.com/k3s-io/k3s
Suppress error message from grep by removing in the end as it is wrongly interpreted as a file.
parent
977252d4b2
commit
384868e570
|
@ -1713,7 +1713,7 @@ function create-subnetworks() {
|
|||
--secondary-range "services-default=${SERVICE_CLUSTER_IP_RANGE}"
|
||||
echo "Created subnetwork ${IP_ALIAS_SUBNETWORK}"
|
||||
else
|
||||
if ! echo ${subnet} | grep -qs secondaryIpRanges ${subnet} 2>/dev/null; then
|
||||
if ! echo ${subnet} | grep --quiet secondaryIpRanges; then
|
||||
echo "${color_red}Subnet ${IP_ALIAS_SUBNETWORK} does not have a secondary range${color_norm}"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue