Skip to content

Commit 734e8fb

Browse files
committed
fix syntax error
1 parent 2529cda commit 734e8fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cluster-autoscaler/cloudprovider/datacrunch/datacrunch_node_group.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fi
8282
# 3.Get instance ID based on node name
8383
INSTANCE_ID=$(curl -s https://api.datacrunch.io/v1/instances \
8484
--header "Authorization: Bearer $ACCESS_TOKEN" | \
85-
jq -r --arg HOSTNAME "{{ .NODENAME }}" '.[] | select(.hostname == {{ .NODENAME }}) | .id')
85+
jq -r --arg HOSTNAME "{{ .NODENAME }}" '.[] | select(.hostname == "{{ .NODENAME }}") | .id')
8686
8787
if [ -n "$INSTANCE_ID" ]; then
8888
echo "Instance ID for hostname {{ .NODENAME }} is $INSTANCE_ID"
@@ -544,7 +544,6 @@ func buildPreScript(scriptName string, nodeName string) (string, error) {
544544
"DATACRUNCH_CLIENT_SECRET": clientSecret,
545545
"SCRIPT_NAME": scriptName,
546546
"DELETE_SCRIPT": fmt.Sprintf("%t", deleteScriptsAfterBoot),
547-
"NODENAME": nodeName,
548547
}
549548

550549
// Process the template

0 commit comments

Comments
 (0)