now testing

pull/699/head
mike dupont 4 months ago
parent c2f0473da6
commit 60ed8f0869

@ -21,10 +21,12 @@ def main():
if state == 'running': if state == 'running':
ip = instance["PublicIpAddress"] ip = instance["PublicIpAddress"]
BASE_URL=f"http://{ip}:80/v1/" BASE_URL=f"http://{ip}:80/v1"
print(f"Starting command for instance: {instance_id} {BASE_URL}") target = f"{BASE_URL}/docs"
print(f"Starting command for instance: {instance_id} {target} ")
try: try:
response = requests.get(f"{BASE_URL}/docs", timeout=3) response = requests.get(target, timeout=8)
#http://18.205.7.10/v1/docs
print(response) print(response)
except Exception as exp: except Exception as exp:
print(BASE_URL,exp) print(BASE_URL,exp)

Loading…
Cancel
Save