hobo: replace - by _ in slugs (#14790)
This commit is contained in:
parent
0c538983e0
commit
b7ad4bbb78
|
@ -229,6 +229,7 @@ def test_configure_site_options():
|
|||
assert pub.get_site_option('xxx', 'variables') == 'HELLO WORLD'
|
||||
assert pub.get_site_option('portal_agent_url', 'variables') == 'http://agents.example.net/'
|
||||
assert pub.get_site_option('portal_url', 'variables') == 'http://portal.example.net/'
|
||||
assert pub.get_site_option('test_wcs_url', 'variables') == 'http://wcs.example.net/'
|
||||
assert (pub.get_site_option('authentic.example.net', 'api-secrets')
|
||||
== CmdCheckHobos.shared_secret(HOBO_JSON['services'][1]['secret_key'],
|
||||
HOBO_JSON['services'][2]['secret_key']))
|
||||
|
|
|
@ -308,7 +308,8 @@ class CmdCheckHobos(Command):
|
|||
variables = {}
|
||||
api_secrets = {}
|
||||
for service in self.all_services.get('services', []):
|
||||
variables['%s_url' % service.get('slug')] = service.get('base_url')
|
||||
if service.get('slug'):
|
||||
variables['%s_url' % service.get('slug').replace('-', '_')] = service.get('base_url')
|
||||
# ignore current service to prevent self-domain = secret_key ^ secret_key = 0
|
||||
if service is current_service:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue