Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
continue on loop
  • Loading branch information
coadler committed Jun 10, 2022
commit 00a3677c376275359d033d20ae227c25160fe7c6
16 changes: 9 additions & 7 deletions provisioner/terraform/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,16 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
}
}

if agentResource != nil {
agents, exists := resourceAgents[agentResource.Label]
if !exists {
agents = make([]*proto.Agent, 0)
}
agents = append(agents, agent)
resourceAgents[agentResource.Label] = agents
if agentResource == nil {
continue
}

agents, exists := resourceAgents[agentResource.Label]
if !exists {
agents = make([]*proto.Agent, 0)
}
agents = append(agents, agent)
resourceAgents[agentResource.Label] = agents
}

// Manually associate agents with instance IDs.
Expand Down