Skip to content

Commit bce4a88

Browse files
committed
chore: review comments
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent 6454ffe commit bce4a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisioner/terraform/resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func hasAITaskResources(graph *gographviz.Graph) bool {
178178
// Check if this node is a coder_ai_task resource
179179
if label, exists := node.Attrs["label"]; exists {
180180
labelValue := strings.Trim(label, `"`)
181-
if strings.Contains(labelValue, "coder_ai_task.") {
181+
if strings.HasPrefix(labelValue, "coder_ai_task.") {
182182
return true
183183
}
184184
}

0 commit comments

Comments
 (0)