Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Rename "CODER_URL" to "CODER_AGENT_URL"#15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfromagentenv
Apr 30, 2022
Merged
Changes fromall commits
Commits
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
6 changes: 3 additions & 3 deletionsinternal/provider/provider.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,9 +26,9 @@ func New() *schema.Provider {
Type:schema.TypeString,
Description:"The URL to access Coder.",
Optional:true,
// The "CODER_URL" environment variable is used by default
// The "CODER_AGENT_URL" environment variable is used by default
// as the Access URL when generating scripts.
DefaultFunc:schema.EnvDefaultFunc("CODER_URL","https://mydeployment.coder.com"),
DefaultFunc:schema.EnvDefaultFunc("CODER_AGENT_URL","https://mydeployment.coder.com"),
ValidateFunc:func(iinterface{},sstring) ([]string, []error) {
_,err:=url.Parse(s)
iferr!=nil {
Expand All@@ -44,7 +44,7 @@ func New() *schema.Provider {
returnnil,diag.Errorf("unexpected type %q for url",reflect.TypeOf(resourceData.Get("url")).String())
}
ifrawURL=="" {
returnnil,diag.Errorf("CODER_URL must not be empty; got %q",rawURL)
returnnil,diag.Errorf("CODER_AGENT_URL must not be empty; got %q",rawURL)
}
parsed,err:=url.Parse(resourceData.Get("url").(string))
iferr!=nil {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp