From 5634aed6797d0e34460ade9c4aa099eddc78df1c Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 13 Apr 2026 15:19:39 -0400 Subject: [PATCH] support minion node descriptions containing spaces --- salt/manager/tools/sbin/so-minion | 4 ++-- setup/so-setup | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/salt/manager/tools/sbin/so-minion b/salt/manager/tools/sbin/so-minion index 2d5ef448e..76b067817 100755 --- a/salt/manager/tools/sbin/so-minion +++ b/salt/manager/tools/sbin/so-minion @@ -132,8 +132,8 @@ function getinstallinfo() { log "ERROR" "Failed to get install info from $MINION_ID" return 1 fi - - export $(echo "$INSTALLVARS" | xargs) + + while read -r var; do export "$var"; done <<< "$INSTALLVARS" if [ $? -ne 0 ]; then log "ERROR" "Failed to source install variables" return 1 diff --git a/setup/so-setup b/setup/so-setup index 823a379df..1ef88a342 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -219,6 +219,7 @@ if [ -n "$test_profile" ]; then WEBUSER=onionuser@somewhere.invalid WEBPASSWD1=0n10nus3r WEBPASSWD2=0n10nus3r + NODE_DESCRIPTION="${HOSTNAME} - ${install_type}" update_sudoers_for_testing fi