terraform-provider-opennebula
terraform-provider-opennebula copied to clipboard
Allow Updates to `template` Attribute in `opennebula_service_template` Resource Without Forcing New Resource
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for PR followers and do not help prioritize the request
Description
This pull request modifies the opennebula_service_template
resource to allow updates to the template
attribute without forcing the resource to be recreated. The following changes were made:
- Set
ForceNew
tofalse
for thetemplate
attribute. - Added logic to handle updates to the
template
attribute in theresourceOpennebulaServiceTemplateUpdate
function.
These changes enable updating the template
attribute and applying changes without recreating the entire resource.
New or Affected Resource(s)
- opennebula_service_template
Checklist
- [ ] I have created an issue and I have mentioned it in
References
- [ ] My code follows the style guidelines of this project (use
go fmt
) - [ ] My changes generate no new warnings or errors
- [ ] I have updated the unit tests and they pass successfully
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation (if needed)
- [ ] I have updated the changelog file