Skip to content

Commit 78b1b33

Browse files
authored
fix: in node template resource allow updating clm-enabled to false after true (#667)
1 parent 94cda74 commit 78b1b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

castai/resource_node_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ func updateNodeTemplate(ctx context.Context, d *schema.ResourceData, meta any, s
13691369
req.Gpu = toTemplateGpu(v[0].(map[string]any))
13701370
}
13711371

1372-
if v, ok := d.GetOk(FieldNodeTemplateClmEnabled); ok {
1372+
if v, _ := d.GetOk(FieldNodeTemplateClmEnabled); v != nil {
13731373
req.ClmEnabled = lo.ToPtr(v.(bool))
13741374
}
13751375

0 commit comments

Comments
 (0)