Skip to content

Commit f03aeb1

Browse files
committed
resources
1 parent 414459a commit f03aeb1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

coderd/provisionerdserver/provisionerdserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,7 @@ func InsertWorkspaceResource(ctx context.Context, db database.Store, jobID uuid.
15241524
DisplayApps: convertDisplayApps(prAgent.GetDisplayApps()),
15251525
InstanceMetadata: pqtype.NullRawMessage{},
15261526
ResourceMetadata: pqtype.NullRawMessage{},
1527+
DisplayOrder: int32(prAgent.Order),
15271528
})
15281529
if err != nil {
15291530
return xerrors.Errorf("insert agent: %w", err)

provisioner/terraform/resources.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type agentAttributes struct {
5050
MOTDFile string `mapstructure:"motd_file"`
5151
Metadata []agentMetadata `mapstructure:"metadata"`
5252
DisplayApps []agentDisplayAppsAttributes `mapstructure:"display_apps"`
53+
Order int64 `mapstructure:"order"`
5354
}
5455

5556
type agentDisplayAppsAttributes struct {
@@ -241,6 +242,7 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
241242
MotdFile: attrs.MOTDFile,
242243
Metadata: metadata,
243244
DisplayApps: displayApps,
245+
Order: attrs.Order,
244246
}
245247
// Support the legacy script attributes in the agent!
246248
if attrs.StartupScript != "" {

0 commit comments

Comments
 (0)