Skip to content
Snippets Groups Projects
Commit e6054f67 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Configured USVs further

parent a9867b93
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python2
import sys
KILLPOWER = "killpower"
ONBATTERY = "onbattery"
case = KILLPOWER
if len(sys.argv) >= 2:
case = sys.argv[1]
if case not in {KILLPOWER, ONBATTERY}:
case = KILLPOWER
from ganeti import GanetiRapiClient
rapi = GanetiRapiClient(host={{ ganeti_cluster_address }}, username={{ ganeti_rapi_user }}, password={{ ganeti_rapi_password }}) # todo: fix variable usage
cluster_info = rapi.GetInfo()
This diff is collapsed.
import json
import socket
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment