jupyterhub / wrapspawner

Mechanism for runtime configuration of spawners for JupyterHub
BSD 3-Clause "New" or "Revised" License
60 stars 58 forks source link

Fail informatively when profile keys are not unique #62

Closed Ph0tonic closed 6 months ago

Ph0tonic commented 7 months ago

When the config is invalid and uses the same key for 2 different profiles, then no warning or errors are triggered !

This PR adds a warning message when 2 profiles are configured with the same key. The invalid config error may lead to unexpected behaviour by launching the wrong profile.

\cc @mbmilligan

minrk commented 6 months ago

Thanks!