mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: ensure agentResource is non-nil (#2261)
This commit is contained in:
@@ -127,6 +127,10 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
|
||||
}
|
||||
}
|
||||
|
||||
if agentResource == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
agents, exists := resourceAgents[agentResource.Label]
|
||||
if !exists {
|
||||
agents = make([]*proto.Agent, 0)
|
||||
|
||||
Reference in New Issue
Block a user