From 82c7832d60beea6cfeaea61609bfe9cbb160298e Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 14 Jan 2021 12:58:21 -0500 Subject: [PATCH] [fix] Fix indent in valid_hostname --- salt/common/tools/sbin/so-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-common b/salt/common/tools/sbin/so-common index 1f8a36d23..e3b01886b 100755 --- a/salt/common/tools/sbin/so-common +++ b/salt/common/tools/sbin/so-common @@ -284,7 +284,7 @@ valid_fqdn() { valid_hostname() { local hostname=$1 - [[ $hostname =~ ^[a-zA-Z0-9\-]+$ ]] && [[ $hostname != 'localhost' ]] && return 0 || return 1 + [[ $hostname =~ ^[a-zA-Z0-9\-]+$ ]] && [[ $hostname != 'localhost' ]] && return 0 || return 1 } valid_ip4() {