We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3129a7d commit 46b1b31Copy full SHA for 46b1b31
internal/script/script_defs.go
@@ -1331,7 +1331,7 @@ fi
1331
duration={{.Duration}} # total duration in seconds
1332
interval={{.Interval}} # time between readings in seconds
1333
pdu="{{.PDUHost}}" # PDU hostname or IP address (must not start with protocol like http://, may include port)
1334
-pdu_ip=$(echo $pdu | awk -F/ '{print $NF}' | awk -F: '{print $1}') # remove http:// or https:// and port if present
+pdu_ip=$(echo "$pdu" | awk -F/ '{print $NF}' | awk -F: '{print $1}') # remove http:// or https:// and port if present
1335
pdu_username="{{.PDUUser}}"
1336
pdu_password="{{.PDUPassword}}"
1337
outletgroup="{{.PDUOutlet}}"
0 commit comments