Skip to content
Snippets Groups Projects
Commit efc3bb33 authored by bta's avatar bta
Browse files

get-config: enable some failure messages.

These are not debug messages, they should be always on to see what's happening
on the machine.
parent 71e810d6
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ function getTokenJSON() {
ret=$?
if [[ $ret != 0 ]]; then
debug "Invalid authentication request!"
echo "Invalid authentication request!"
return $ret
fi
......@@ -62,7 +62,7 @@ function getTokenJSON() {
# check the status
if [[ $HTTP_STATUS -ne 200 ]]; then
debug "Authentication failed!"
echo "Authentication failed!"
return 1
else
# extract the body
......@@ -105,7 +105,7 @@ getConfigVars() {
CONFIG_NAME=`echo $MACHINE_JSON | jsonValue name 2`
if [[ "$CONFIG_NAME" == "" ]]; then
debug "Error fetching machine configuration!"
echo "Error fetching machine configuration!"
return 1
fi
......@@ -178,13 +178,13 @@ function getConfig() {
getConfigFile
if [[ $? != 0 ]]; then
debug "Error fetching machine config file!"
echo "Error fetching machine config file!"
return 1
fi
getIpConfigFile
if [[ $? != 0 ]]; then
debug "Error fetching machine iptables file!"
echo "Error fetching machine iptables file!"
return 1
fi
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment