Skip to content

Commit

Permalink
default hub api url in cull-idle
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Nov 18, 2016
1 parent dfbcc59 commit 065f7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/cull_idle/files/cull_idle_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def cull_idle(url, api_token, timeout):
app_log.debug("Finished culling %s", name)

if __name__ == '__main__':
define('url', default=os.environ.get('JUPYTERHUB_API_URL'), help="The JupyterHub API URL")
define('url', default=os.environ.get('JUPYTERHUB_API_URL') or 'http://127.0.0.1:8081/hub/api', help="The JupyterHub API URL")
define('timeout', default=600, help="The idle timeout (in seconds)")
define('cull_every', default=0, help="The interval (in seconds) for checking for idle servers to cull")

Expand Down

0 comments on commit 065f7df

Please sign in to comment.