xyou365 / AutoRclone

AutoRclone: rclone copy/move/sync (automatically) with thousands of service accounts
https://www.gfan.loan/?p=235
1.36k stars 520 forks source link

filter active project when gen sa #59

Closed LeeeMooo closed 4 weeks ago

LeeeMooo commented 3 years ago

https://github.com/xyou365/AutoRclone/blob/f90853a989b3773b188fe7501a574800c6ef1145/gen_sa_accounts.py#L45

return [i['projectId'] for i in service.projects().list().execute()['projects'] if i['lifecycleState'] == 'ACTIVE']
harryqt commented 3 years ago

You should send a PR.

ChaojuWang commented 3 years ago

PR created. #63