cvk98 / Proxmox-load-balancer

Designed to constantly maintain the Proxmox cluster in balance
GNU General Public License v3.0
171 stars 20 forks source link

Display system information collected by the script without running the migration #13

Closed deniskonovalov64 closed 1 year ago

deniskonovalov64 commented 1 year ago

Hello, sorry for the stupid question, my python skills are very low. How can I make the script output the information it has collected for viewing without running migration?

cvk98 commented 1 year ago

Hello. In line 387, a migration task is being performed. (job = requests.post(url, cookies=payload, headers=header, data=options, verify=False)). Instead, you can write print('necessary information'). But most likely after that, the further work of the script will be interrupted with an exception.

deniskonovalov64 commented 1 year ago

I understand, thanks for the help.