vsphere-automation-sdk-python
vsphere-automation-sdk-python copied to clipboard
Update Content Library storage backings
Describe the bug
Updating a content library storage backings does not work with the following code:
library_id = '<valid_lib_id>'
datastore_mo_id = '<valid_ds_id>'
update_spec = LibraryModel()
update_spec.storage_backings = [StorageBacking(type=StorageBacking.Type.DATASTORE, datastore_id=datastore_mo_id)]
self.client.local_library_service.update(library_id, update_spec)
Reproduction steps
1. Update content library backings with the following code:
library_id = '<valid_lib_id>'
datastore_mo_id = '<valid_ds_id>'
update_spec = LibraryModel()
update_spec.storage_backings = [StorageBacking(type=StorageBacking.Type.DATASTORE, datastore_id=datastore_mo_id)]
self.client.local_library_service.update(library_id, update_spec)
2. Storage backings not updated and no error is thrown.
Expected behavior
Either storage backing is updated as specified or feedback is provided.
Additional context
No response