feat: support custom order of agent metadata (#12066)

This commit is contained in:
Marcin Tojek
2024-02-08 17:29:34 +01:00
committed by GitHub
parent e659957b65
commit c0e169ebf9
23 changed files with 438 additions and 316 deletions

View File

@ -25,6 +25,7 @@ type agentMetadata struct {
Script string `mapstructure:"script"`
Interval int64 `mapstructure:"interval"`
Timeout int64 `mapstructure:"timeout"`
Order int64 `mapstructure:"order"`
}
// A mapping of attributes on the "coder_agent" resource.
@ -209,6 +210,7 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
Script: item.Script,
Interval: item.Interval,
Timeout: item.Timeout,
Order: item.Order,
})
}