From 3e981a13290b9f8017100ee41c49e5e356fd9510 Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Wed, 1 Apr 2026 00:39:55 -0500 Subject: Fix host matching for FQDN --- execute_commands.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'execute_commands.sh') diff --git a/execute_commands.sh b/execute_commands.sh index 8093ad8..c14a3e2 100755 --- a/execute_commands.sh +++ b/execute_commands.sh @@ -28,7 +28,7 @@ for cmd in d.get('commands', []): if [ "$ACTION" = "create_worker" ]; then CMD_HOST=$(echo "$PARAMS" | python3 -c "import sys,json; print(json.load(sys.stdin).get('host',''))" 2>/dev/null) MY_HOST=$(hostname) - if [ -n "$CMD_HOST" ] && [ "$CMD_HOST" != "$MY_HOST" ]; then + if [ -n "$CMD_HOST" ] && [[ "$MY_HOST" != "$CMD_HOST"* ]] && [[ "$CMD_HOST" != "$MY_HOST"* ]]; then echo "$(date): Skipping $CMD_ID - host $CMD_HOST != $MY_HOST" continue fi -- cgit v1.2.3