-
Notifications
You must be signed in to change notification settings - Fork 652
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch UpdateComputeEnvironment will not update MinvCpus to zero #1414
Comments
Thanks for reporting this bug @cgmartin. We're investigating the best way to handle this issue. We think this is similar to the modeling issue the SDK had with Amazon EC2's API model, e.g. #1107. Similar to the EC2 issue, it looks like the fields should of been modeled as boxed (aka nullable), instead of unboxed, (aka non-nullable). We're investigating if there is a way to fix this issue without making a breaking change to the |
Thank you for reviewing this. FWIW based on the API call, where fields are intended to only be included if they need to change, I agree that it should be modeled as boxed (which was my approach in my local fix #1466). And I empathize about the potential breaking change. My expertise with golang is low to confidently suggest a non-breaking path forward. The only idea I have would be to include a completely separate |
service/[email protected] has been updated with a fix that corrects the representation of the members correctly. go get github.com/aws/aws-sdk-go-v2/service/[email protected] This is a breaking change though. The breaking change was accepted because the API operation could not be used correctly with the members modeled as unboxed (aka value) types. The update changes the members to boxed (aka pointer) types so that the zero value of the members can be handled correctly by the SDK and service. Your application will fail to compile with the updated module. To workaround this you'll need to update your application to use pointer types for the members impacted. |
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Batch UpdateComputeEnvironment will not update MinvCpus to zero.
Version of AWS SDK for Go?
AWS version: 1.8.1
Version of Go (
go version
)?Go version: go1.16.7
To Reproduce (observed behavior)
The "minvCpus" property is not sent.
Expected behavior
I expect to be able to change the minvCpus value to 0 with an UpdateComputeEnvironment call.
Additional context
Serializers are currently implemented to exclude zero values for MinvCpus, MaxvCpus and DesiredvCpus, see
aws-sdk-go-v2/service/batch/serializers.go
Lines 1767 to 1780 in a1be727
The text was updated successfully, but these errors were encountered: