Merge pull request #587 from jtpio/hub-ready-config

Use /hub/api endpoint to check for hub ready
This commit is contained in:
Georgiana Elena
2020-06-23 12:41:02 +03:00
committed by GitHub

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