Commvault / cvpysdk

Developer SDK - Python
https://commvault.github.io/cvpysdk/
Apache License 2.0
54 stars 41 forks source link

Feature: resync clientgroups #172

Closed intervisionlord closed 3 days ago

intervisionlord commented 1 year ago

Please add a method for clientgroup class for manualy resync clients in clientgroup

Reason:

def sync(group_name: str) -> None:
    target_group = ClientGroup(commcell, group_name)
    target_group.update_properties({'syncStatus': 1})
    print('NEW Sync Status:', target_group.properties['discoverRulesInfo']['syncStatus'])
    print('Clients', target_group.associated_clients)

Returns:

NEW Sync Status: 0
Clients []

Seems it does not work

spakhare commented 3 days ago

A new method to refresh the associated clients is added.

https://github.com/Commvault/cvpysdk/blob/dev/cvpysdk/clientgroup.py#L2036

Thanks,