check_hobos: allow different tempate names for user/agent combo portals (#33950)

This commit is contained in:
Nicolas Roche 2019-06-13 15:29:13 +02:00 committed by Frédéric Péters
parent d1302e32a2
commit 476dc6c8ce
1 changed files with 2 additions and 2 deletions

View File

@ -408,10 +408,10 @@ class CmdCheckHobos(Command):
continue
if service.get('service-id') == 'combo':
if service.get('template_name') == 'portal-agent':
if 'portal-agent' in service.get('template_name', ''):
variables['portal_agent_url'] = service_url
variables['portal_agent_title'] = service.get('title')
elif service.get('template_name') == 'portal-user':
elif 'portal-user' in service.get('template_name', ''):
variables['portal_url'] = service_url
variables['portal_user_url'] = service_url
variables['portal_user_title'] = service.get('title')