Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3a1cd3

Browse files
authored
fix: ensure agentResource is non-nil (#2261)
1 parent 8415022 commit e3a1cd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

provisioner/terraform/resources.go

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
127127
}
128128
}
129129

130+
if agentResource == nil {
131+
continue
132+
}
133+
130134
agents, exists := resourceAgents[agentResource.Label]
131135
if !exists {
132136
agents = make([]*proto.Agent, 0)

0 commit comments

Comments
 (0)