From 0e9d18dc2179183021ac4f064f0fdb2d31f432d2 Mon Sep 17 00:00:00 2001 From: Michael Gross Date: Mon, 17 May 2021 08:06:22 +0200 Subject: [PATCH] fix golint: unnecessary conversion for node_idle_time_before_scale_down --- .../machine_learning_compute_cluster_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/machinelearning/machine_learning_compute_cluster_resource.go b/azurerm/internal/services/machinelearning/machine_learning_compute_cluster_resource.go index 4dd0aaf22d4a9..aa1ca8dfb0fb0 100644 --- a/azurerm/internal/services/machinelearning/machine_learning_compute_cluster_resource.go +++ b/azurerm/internal/services/machinelearning/machine_learning_compute_cluster_resource.go @@ -284,7 +284,7 @@ func expandScaleSettings(input []interface{}) *machinelearningservices.ScaleSett max_node_count := int32(v["max_node_count"].(int)) min_node_count := int32(v["min_node_count"].(int)) - node_idle_time_before_scale_down := string(v["node_idle_time_before_scale_down"].(string)) + node_idle_time_before_scale_down := v["node_idle_time_before_scale_down"].(string) return &machinelearningservices.ScaleSettings{ MaxNodeCount: &max_node_count,