10000
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 b2009b2 commit b6c493dCopy full SHA for b6c493d
provisioner/terraform/resources.go
@@ -178,7 +178,9 @@ func hasAITaskResources(graph *gographviz.Graph) bool {
178
// Check if this node is a coder_ai_task resource
179
if label, exists := node.Attrs["label"]; exists {
180
labelValue := strings.Trim(label, `"`)
181
- if strings.HasPrefix(labelValue, "coder_ai_task.") {
+ // The first condition is for the case where the resource is in the root module.
182
+ // The second condition is for the case where the resource is in a child module.
183
+ if strings.HasPrefix(labelValue, "coder_ai_task.") || strings.Contains(labelValue, ".coder_ai_task.") {
184
return true
185
}
186
0 commit comments