@@ -25,16 +25,13 @@ type agentAttributes struct {
25
25
26
26
// A mapping of attributes on the "coder_app" resource.
27
27
type agentAppAttributes struct {
28
- AgentID string `mapstructure:"agent_id"`
29
- Name string `mapstructure:"name"`
30
- Icon string `mapstructure:"icon"`
31
- URL string `mapstructure:"url"`
32
- Command string `mapstructure:"command"`
33
- Subdomain bool `mapstructure:"subdomain"`
34
- // RelativePath is deprecated in favor of Subdomain. This value is a pointer
35
- // because we prefer it over Subdomain it was explicitly set.
36
- RelativePath * bool `mapstructure:"relative_path"`
37
- Healthcheck []appHealthcheckAttributes `mapstructure:"healthcheck"`
28
+ AgentID string `mapstructure:"agent_id"`
29
+ Name string `mapstructure:"name"`
30
+ Icon string `mapstructure:"icon"`
31
+ URL string `mapstructure:"url"`
32
+ Command string `mapstructure:"command"`
33
+ Subdomain bool `mapstructure:"subdomain"`
34
+ Healthcheck []appHealthcheckAttributes `mapstructure:"healthcheck"`
38
35
}
39
36
40
37
// A mapping of attributes on the "healthcheck" resource.
@@ -238,12 +235,7 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
238
235
}
239
236
}
240
237
241
- // Default attrs.RelativePath to true if unspecified in Terraform.
242
238
subdomain := attrs .Subdomain
243
- if attrs .RelativePath != nil {
244
- subdomain = ! * attrs .RelativePath
245
- }
246
-
247
239
for _ , agents := range resourceAgents {
248
240
for _ , agent := range agents {
249
241
// Find agents with the matching ID and associate them!
0 commit comments