Batch restart Cloud service for CUBE
This commit is contained in:
@@ -30,7 +30,7 @@ def authenticate(base_url):
|
||||
"params": (None, json.dumps(auth_params), "application/json"),
|
||||
"certificate": ("certificate.pem", certificate, "application/octet-stream")
|
||||
}
|
||||
|
||||
print(f"Authenticating against {auth_url} with {username} {password} {certificate}")
|
||||
try:
|
||||
response = requests.post(auth_url, files=files, verify=False, timeout=10)
|
||||
response.raise_for_status() # Raise exception for 4XX/5XX responses
|
||||
@@ -93,6 +93,7 @@ def activate_ssh(ip_address):
|
||||
if not url.endswith(":9080"):
|
||||
url = url + ":9080"
|
||||
|
||||
print(f"Target address: {url}")
|
||||
verify_ssl = False
|
||||
if not verify_ssl:
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
Reference in New Issue
Block a user