- Notifications
You must be signed in to change notification settings - Fork907
chore: upgradeterraform-provider-coder
&preview
libs#17738
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
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
427c417
e48054c
e5e0d65
6bef80c
899b2c7
894e1f5
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -749,13 +749,17 @@ func ConvertState(ctx context.Context, modules []*tfjson.StateModule, rawGraph s | ||
if err != nil { | ||
return nil, xerrors.Errorf("decode map values for coder_parameter.%s: %w", resource.Name, err) | ||
} | ||
var defaultVal string | ||
Emyrk marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
if param.Default != nil { | ||
defaultVal = *param.Default | ||
} | ||
protoParam := &proto.RichParameter{ | ||
Name: param.Name, | ||
DisplayName: param.DisplayName, | ||
Description: param.Description, | ||
Type: param.Type, | ||
Mutable: param.Mutable, | ||
DefaultValue:defaultVal, | ||
Icon: param.Icon, | ||
Required: !param.Optional, | ||
// #nosec G115 - Safe conversion as parameter order value is expected to be within int32 range | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.