Projet

Général

Profil

0001-check_hobos-allow-several-tempates-for-user-agent-co.patch

Nicolas Roche, 13 juin 2019 16:50

Télécharger (1,22 ko)

Voir les différences:

Subject: [PATCH] check_hobos: allow several tempates for user/agent combo
 portals (#33950)

 wcs/ctl/check_hobos.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
wcs/ctl/check_hobos.py
406 406
                continue
407 407

  
408 408
            if service.get('service-id') == 'combo':
409
                if service.get('template_name') == 'portal-agent':
409
                if 'portal-agent' in service.get('template_name', ''):
410 410
                    variables['portal_agent_url'] = service_url
411 411
                    variables['portal_agent_title'] = service.get('title')
412
                elif service.get('template_name') == 'portal-user':
412
                elif 'portal-user' in service.get('template_name', ''):
413 413
                    variables['portal_url'] = service_url
414 414
                    variables['portal_user_url'] = service_url
415 415
                    variables['portal_user_title'] = service.get('title')
416
-