From c06430f20af271927c07fd932fc1f43621fa8c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 8 Jun 2015 16:25:29 +0200 Subject: [PATCH] hobo: generate backoffice_extra_head if there's a combo for agents (#7499) --- wcs/ctl/check_hobos.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index 2e56366..e9d9c4d 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -274,6 +274,18 @@ class CmdCheckHobos(Command): # Use the first fargo found and stop break + try: + portal_agent_url = config.get('variables', 'portal_agent_url') + except ConfigParser.NoOptionError: + pass + else: + if portal_agent_url.endswith('/'): + portal_agent_url = portal_agent_url.rstrip('/') + extra_head = ''''''\ + '''''' % ( + portal_agent_url, portal_agent_url) + config.set('options', 'backoffice_extra_head', extra_head) + with open(site_options_filepath, 'wb') as site_options: config.write(site_options) -- 2.1.4