Skip to content

Commit

Permalink
Merge pull request #587 from jtpio/hub-ready-config
Browse files Browse the repository at this point in the history
Use /hub/api endpoint to check for hub ready
  • Loading branch information
GeorgianaElena authored Jun 23, 2020
2 parents 6cbc997 + c8904ff commit 0b81d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tljh/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b81d7e

Please sign in to comment.