vsphere-automation-sdk-python icon indicating copy to clipboard operation
vsphere-automation-sdk-python copied to clipboard

Update Content Library storage backings

Open jm66 opened this issue 2 years ago • 0 comments

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

jm66 avatar Feb 15 '22 16:02 jm66