@@ -84,6 +84,7 @@ def abspath(path, start):
8484 return path
8585 return os .path .normpath (os .path .join (start , path ))
8686
87+
8788def transform_str_to_dict (input_str ):
8889 """
8990 Transforms a string input into a Python literal or container.
@@ -447,7 +448,7 @@ def generate_confs(
447448 daemon_pubkey_from_dns = False ,
448449 daemon_show_address = '' ,
449450 alias_field = '' ,
450- peers_prefilter = 'email :.*' ,
451+ peers_prefilter = 'peers_email :.*' ,
451452 peers_permit = 'distinguished_name:.*' ,
452453 vgrid_creators = 'distinguished_name:.*' ,
453454 vgrid_managers = 'distinguished_name:.*' ,
@@ -1519,7 +1520,8 @@ def _generate_confs_prepare(
15191520 jupyter_openids , jupyter_oidcs , jupyter_rewrites = [], [], []
15201521 services = user_dict ['__JUPYTER_SERVICES__' ].split ()
15211522
1522- jupyter_services_proxy_configs = transform_str_to_dict (jupyter_services_proxy_config )
1523+ jupyter_services_proxy_configs = transform_str_to_dict (
1524+ jupyter_services_proxy_config )
15231525 if not isinstance (jupyter_services_proxy_configs , dict ):
15241526 print ('Error: jupyter_services_proxy_config '
15251527 'could not be interpreted correctly. Double check that your '
@@ -1623,7 +1625,8 @@ def _generate_confs_prepare(
16231625 ws_host = host .replace (
16241626 "https://" , "wss://" ).replace ("http://" , "ws://" )
16251627 member_def = "Define JUPYTER_%s %s" % (name_index , host )
1626- ws_member_def = "Define WS_JUPYTER_%s %s" % (name_index , ws_host )
1628+ ws_member_def = "Define WS_JUPYTER_%s %s" % (name_index ,
1629+ ws_host )
16271630
16281631 # No user supplied port, assign based on url prefix
16291632 if len (host .split (":" )) < 3 :
@@ -1641,7 +1644,8 @@ def _generate_confs_prepare(
16411644
16421645 jupyter_defs .extend ([member_def , ws_member_def ])
16431646
1644- service_proxy_config_kwargs = jupyter_services_proxy_configs .get (name , {})
1647+ service_proxy_config_kwargs = jupyter_services_proxy_configs .get (
1648+ name , {})
16451649 # Get proxy template and append to template conf
16461650 proxy_template = gen_balancer_proxy_template (
16471651 url , def_name , name , hosts , ws_hosts ,
0 commit comments