Fixed help and documentation related to service tokens

The documentation stated that the key `token` should be used to specify
the pregenerated token in `JupyterHub.services`. This is wrong as the key
should be `api_token`.

This changes the help on the trait, along with changing the module
docstring in `service.py`.
This commit is contained in:
Joshua Milas
2017-01-13 17:45:42 -05:00
parent a276421d25
commit c3b0b2ecf0
2 changed files with 2 additions and 2 deletions

View File

@@ -453,7 +453,7 @@ class JupyterHub(Application):
{ {
'name': 'formgrader', 'name': 'formgrader',
'url': 'http://127.0.0.1:1234', 'url': 'http://127.0.0.1:1234',
'token': 'super-secret', 'api_token': 'super-secret',
'environment': 'environment':
} }
] ]

View File

@@ -27,7 +27,7 @@ An externally managed service running on a URL::
'name': 'my-service', 'name': 'my-service',
'url': 'https://host:8888', 'url': 'https://host:8888',
'admin': True, 'admin': True,
'token': 'super-secret', 'api_token': 'super-secret',
} }
A hub-managed service with no URL: A hub-managed service with no URL: