Skip to main content
Question

CVPYSDK changes more than expected

  • November 13, 2024
  • 2 replies
  • 32 views

Forum|alt.badge.img+2

When I change a client description using the following code:

 

commcell = Commcell(commvault_server, authtoken=token)
client_name = 'cvclient001'
new_description = 'Test Client zero-one'
client = commcell.clients.get(client_name)
client_properties = client.properties
client_properties['client']['clientDescription'] = new_description
client.update_properties(client_properties)


I noticed that advanced settings changed from Another client group to This Object:

Settings before I ran the script:
 

 

After I ran the script (description was updated but also:
 

 

And in the audit trail report I saw:
 


I dont think that modifying a description should result in an extra Additional Setting.
Therefor I added an issue on github, but that isnt noticed (yet ?).

2 replies

Damian Andre
Vaulter
Forum|alt.badge.img+23
  • Vaulter
  • 1301 replies
  • November 16, 2024

This makes sense to me. You are targeting the setting on the client level - you need to update the description for the key defined on the client group. Settings can exist on any level so by specifying the client it is being created there rather than updating at the client group.


Forum|alt.badge.img+2
  • Author
  • Byte
  • 3 replies
  • November 19, 2024

Thanks for your response Damian.

To my opinion it should not add additional settings when modifying the description. It is somewhat scary.
What does CVPYSDK modify when doing other changes to the config of a CV item ?
The Audit Trail report output is now even more important. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings