From 9da066592962fd6a6c1eb05d3231d7c3d077fc33 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 4 Apr 2020 15:56:00 +0200 Subject: [PATCH] [NETW-2400] Improved logging --- include/tests_networking | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/tests_networking b/include/tests_networking index ea326ce0..83a7aae0 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -54,7 +54,7 @@ if IsVerbose; then Display --indent 2 --text "- Hostname (FQDN length)" --result "${STATUS_UNKNOWN}" --color YELLOW; fi else # Fine - LogText "Result: FQDN is defined and shorter than 253 characters (${#FQDN} characters)" + LogText "Result: FQDN is defined and not longer than 253 characters (${#FQDN} characters)" if IsVerbose; then Display --indent 2 --text "- Hostname (FQDN length)" --result "${STATUS_OK}" --color GREEN; fi fi # Now test short hostname @@ -66,6 +66,8 @@ if [ ${#HOSTNAME} -gt 63 ]; then LogText "Result: hostname is more than 63 characters" Display --indent 2 --text "- Hostname (length)" --result "${STATUS_WARNING}" --color RED + else + LogText "Result: hostnamed is defined and not longer than 63 characters" fi # Test valid characters (normally a dot should not be in the name, but we can't be 100% sure we have short name) FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[a-z0-9\.\-]')