-
Notifications
You must be signed in to change notification settings - Fork 454
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
fix: Update vsphere_content_library
defaults for subscribed libraries
#1502
fix: Update vsphere_content_library
defaults for subscribed libraries
#1502
Conversation
@@ -113,13 +113,13 @@ func resourceVSphereContentLibrary() *schema.Resource { | |||
Type: schema.TypeBool, | |||
ForceNew: true, | |||
Optional: true, | |||
Default: true, | |||
Default: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have to brush up on the subtleties of this situation, I also don't have full context on the provider/product yet, but this change could be perceived as a breaking change?
What happens to users who had both this field and automatic_sync
unset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I recall, it will default to on_demand
still.
Yes, it could be perceived as a breaking change, but the current experience is opposite of the product defaults.
Happy to help in any way - message me, if needed.
Ryan
Let me know if you have any additional question @appilon - happy to review over Zoom, too. :) |
vsphere_content_library
defaults for subscribed librariesvsphere_content_library
defaults for subscribed libraries
Converted to draft to avoid accidental merge before next major. Ryan Johnson |
Addresses #1426 by @tenthirtyam. - Sets `automatic_sync` as `Default: true` to align with the default behavior in the vSphere UI. Sets `on_demand` as `Default: false` - Updates the content of the documentation - `content_library.html.markdown` - for readability, context, and accuracy. - Updates the content of the documentation - `content_library.html.markdown` - with subscribed library example. Signed-off-by: Ryan Johnson <[email protected]>
- Update subscribed content library example. - Update examples to use `storage_backing = toset([data.vsphere_datastore.datastore.id])` as a set is required. Addresses #1351. Signed-off-by: Ryan Johnson <[email protected]>
Updates the examples to use `storage_backing = toset([data.vsphere_datastore.datastore.id])` as a set is required. Signed-off-by: Ryan Johnson <[email protected]>
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
automatic_sync
asDefault: true
to align with the default behavior in the vSphere UI. Setson_demand
asDefault: false
Acceptance tests
None. Performed a
go get
andgo build
to perform positive and negative unit tests.Release Note
resource/vsphere_content_library
: Setsautomatic_sync
asDefault: true
on a subscribed content library to align with the default behavior in the vSphere UI. Setson_demand
asDefault: false
[fix: Updatevsphere_content_library
defaults for subscribed libraries #1502]resource/vsphere_content_library
: Updates resource documentation example forstorage_backing
attribute. [fix: Updatevsphere_content_library
defaults for subscribed libraries #1502]References
Resolves #1426 by @tenthirtyam.