Skip to content

Commit a375cff

Browse files
vwbusguyjakefhyde
andauthored
Apply suggestions from code review
Updating log messages with suggested changes Co-authored-by: Jake Hyde <[email protected]>
1 parent d79dee6 commit a375cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ retrieve_connection_info() {
774774
;;
775775
esac
776776
done
777-
error "Max retries exceeded for downloading Rancher connection information."
777+
error "Failed to download Rancher connection information in ${i} attempts"
778778
umask "${UMASK}"
779779
# Clean up invalid rancher2_connection_info.json file
780780
rm -f ${CATTLE_AGENT_VAR_DIR}/rancher2_connection_info.json
@@ -887,7 +887,7 @@ do_install() {
887887

888888
if [ -n "${CATTLE_TOKEN}" ]; then
889889
generate_cattle_identifier
890-
retrieve_connection_info || fatal "Could not get connection_info before max retries" # Only retrieve connection information from Rancher if a token was passed in.
890+
retrieve_connection_info || fatal "Aborting system-agent installation due to failure to retrieve Rancher connection information"
891891
fi
892892
create_systemd_service_file
893893
create_env_file

0 commit comments

Comments
 (0)