Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vpc-nat-gateway: print messgae to stderr #4237

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading