cvpysdk icon indicating copy to clipboard operation
cvpysdk copied to clipboard

Schedule Policy names ignore uppercase letters

Open cvbackup opened this issue 8 months ago • 0 comments

Hi

while modifying a storage policy association that contains uppercase letters in the name, it happens that after the update all letters are lower case. The schedule policy names are captured by the usage of cvpysdk.policies.all_schedule_policies and used for the modification (association). We currently use Commvault version 11.32.92 and the actual cvpysdk. As far as I have seen the issues seems to be related to the code in cvpysdk.policies.schedule_policies - def _get_policies(self). In the code part the gathered names are all processed with .lower(). Maybe this is the reason.

for policy in policies:
                        temp_name = policy['task']['taskName'].lower()
                        temp_id = str(policy['task']['taskId']).lower()

Can you please check if this is really required and maybe adjust it, thus we can also have uppercase letters in the name.

Thanks and best regards

cvbackup avatar Apr 14 '25 09:04 cvbackup