From fb6700fcdb292b263002ea3e0da8f6bff12f7694 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Thu, 19 Aug 2021 17:56:40 +0300 Subject: [PATCH] Hide curl command with auth token from logs Curl command contains auth token to cloud and it's printed in console, let's hide it with "+x". Change-Id: I3cd61678de85c487335802019d3308f4c854636e --- bin/install_openstackbmc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/install_openstackbmc.sh b/bin/install_openstackbmc.sh index 5b30b7e..b3cb2e0 100644 --- a/bin/install_openstackbmc.sh +++ b/bin/install_openstackbmc.sh @@ -199,10 +199,11 @@ sleep 5 if ! systemctl is-active openstack-bmc-* >/dev/null then systemctl status openstack-bmc-* + set +x $signal_command --data-binary '{"status": "FAILURE"}' echo "********** $unit failed to start **********" exit 1 fi - +set +x $signal_command --data-binary '{"status": "SUCCESS"}'