fix(opensearchservice): enableAutoSoftwareUpdate: false is not reflected in the CloudFormation template#37152
Conversation
…abling it The truthiness check on `enableAutoSoftwareUpdate` treated `false` as falsy, causing `SoftwareUpdateOptions` to be omitted from the template entirely. This made it impossible to disable auto software update once it had been enabled. Changed the check from `props.enableAutoSoftwareUpdate ? ...` to `props.enableAutoSoftwareUpdate !== undefined ? ...` so that an explicit `false` value is correctly rendered in the CloudFormation template. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
exemption request |
enableAutoSoftwareUpdate: false is not reflected in the CloudFormation template
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue StatusRule:
This pull request spent 13 hours 15 minutes 30 seconds in the queue, including 43 minutes 22 seconds running CI. Required conditions to merge
|
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue
Relates to #36382 (review thread).
Reason for this change
The truthiness check on
enableAutoSoftwareUpdatetreatedfalseas falsy, causingSoftwareUpdateOptionsto be omitted from the CloudFormation template entirely. This made it impossible to disable auto software update once it had been enabled.Description of changes
Changed the condition from
props.enableAutoSoftwareUpdate ? ...toprops.enableAutoSoftwareUpdate !== undefined ? ...so that an explicitfalsevalue is correctly rendered in the template. This is consistent with the existing pattern used forcoldStorageEnabledin the same file.Description of how you validated changes
Add unit test.
Checklist