Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Next Next commit
Use consistent Seconds terminology
  • Loading branch information
mafredri committed Jan 23, 2023
commit c6928e92f3e78320ab3aa4c845bdcd84c682342e
28 changes: 14 additions & 14 deletions provisioner/terraform/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ import (

// A mapping of attributes on the "coder_agent" resource.
type agentAttributes struct {
Auth string `mapstructure:"auth"`
OperatingSystem string `mapstructure:"os"`
Architecture string `mapstructure:"arch"`
Directory string `mapstructure:"dir"`
ID string `mapstructure:"id"`
Token string `mapstructure:"token"`
Env map[string]string `mapstructure:"env"`
StartupScript string `mapstructure:"startup_script"`
ConnectionTimeoutSeconds int32 `mapstructure:"connection_timeout"`
TroubleshootingURL string `mapstructure:"troubleshooting_url"`
MOTDFile string `mapstructure:"motd_file"`
DelayLoginUntilReady bool `mapstructure:"delay_login_until_ready"`
StartupScriptTimeout int32 `mapstructure:"startup_script_timeout"`
Auth string `mapstructure:"auth"`
OperatingSystem string `mapstructure:"os"`
Architecture string `mapstructure:"arch"`
Directory string `mapstructure:"dir"`
ID string `mapstructure:"id"`
Token string `mapstructure:"token"`
Env map[string]string `mapstructure:"env"`
StartupScript string `mapstructure:"startup_script"`
ConnectionTimeoutSeconds int32 `mapstructure:"connection_timeout"`
TroubleshootingURL string `mapstructure:"troubleshooting_url"`
MOTDFile string `mapstructure:"motd_file"`
DelayLoginUntilReady bool `mapstructure:"delay_login_until_ready"`
StartupScriptTimeoutSeconds int32 `mapstructure:"startup_script_timeout"`
}

// A mapping of attributes on the "coder_app" resource.
Expand Down Expand Up @@ -135,7 +135,7 @@ func ConvertResourcesAndParameters(modules []*tfjson.StateModule, rawGraph strin
TroubleshootingUrl: attrs.TroubleshootingURL,
MotdFile: attrs.MOTDFile,
DelayLoginUntilReady: attrs.DelayLoginUntilReady,
StartupScriptTimeoutSeconds: attrs.StartupScriptTimeout,
StartupScriptTimeoutSeconds: attrs.StartupScriptTimeoutSeconds,
}
switch attrs.Auth {
case "token":
Expand Down