This commit is contained in:
crate 2024-10-09 20:35:42 +00:00
parent 9b514dd962
commit 75711e8700

View File

@ -13,7 +13,7 @@ all_nodes = proxmox.nodes.get()
def shutdown_pve():
try:
proxmox.nodes(pve_node).status.shutdown.post()
proxmox.nodes(pve_node).status.post(command='shutdown')
print("Node is shutting down.")
except Exception as e:
print(e)