Skip to content

Commit

Permalink
vpc-nat-gateway: print messgae to stderr (kubeovn#4237)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian committed Jun 29, 2024
1 parent 03ce5a3 commit 0ac371d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/images/vpcnatgateway/lb-svc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function exec_cmd() {
$cmd
ret=$?
if [ $ret -ne 0 ]; then
echo "failed to exec \"$cmd\""
>&2 echo "failed to exec command \"$cmd\""
exit $ret
fi
}
Expand Down
4 changes: 2 additions & 2 deletions dist/images/vpcnatgateway/nat-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ function exec_cmd() {
$cmd
ret=$?
if [ $ret -ne 0 ]; then
echo "failed to exec \"$cmd\""
>&2 echo "failed to exec command \"$cmd\""
exit $ret
fi
}

function check_inited() {
iptables-save -t nat | grep SNAT_FILTER | grep SHARED_SNAT
if [ $? -ne 0 ]; then
echo "nat gateway not inited"
>&2 echo "nat gateway not initialized"
exit 1
fi
}
Expand Down

0 comments on commit 0ac371d

Please sign in to comment.