mirror of
https://github.com/cvk98/Proxmox-host-maintenance-mode.git
synced 2026-04-25 04:25:49 +03:00
[GH-ISSUE #3] How to run? #2
Labels
No labels
documentation
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxmox-host-maintenance-mode#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @semihtore on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/cvk98/Proxmox-host-maintenance-mode/issues/3
root@node3:~/Proxmox-host-maintenance-mode# python3 maintenance-mode.py Traceback (most recent call last): File "/root/Proxmox-host-maintenance-mode/maintenance-mode.py", line 372, in <module> cluster = Cluster(server_url, auth) NameError: name 'server_url' is not defined root@node3:~/Proxmox-host-maintenance-mode#@cvk98 commented on GitHub (Oct 21, 2022):
You need to install Pycharm.
Copy the code there.
Install all libraries.
Enter your server data, login, password here:
server = "https://10.10.10.100:8006 "
auth = {'username': "root@pam", 'password': "YOUR_PASSWORD"}
And run it.
KeyErrorwhen the cluster contains pools #4