Use /hub/api endpoint to check for hub ready

On config reload
This commit is contained in:
Jeremy Tuloup
2020-06-23 10:43:00 +02:00
committed by GitHub
parent 6cbc997ed8
commit c8904ff480

View File

@@ -240,7 +240,7 @@ def remove_config_value(config_path, key_path, value):
def check_hub_ready():
try:
r = requests.get('http://127.0.0.1:80', verify=False)
r = requests.get('http://127.0.0.1:80/hub/api', verify=False)
return r.status_code == 200
except:
return False