Commit d76a9a39 authored by Roque's avatar Roque

slapos_jio: sanitize slapos master monitoring url

parent ec7461b2
......@@ -16,7 +16,7 @@ if context.getPortalType() == "Instance Tree":
# connection_parameter['connection_value'] looks like #page=settings_configurator&url=xx/public/feeds&username=admin&password=yy
# workaround until settings_configurator is c on software releases / buildout cfg files are updated
return connection_parameter['connection_value'].replace("settings_configurator", "ojsm_landing")
return base_url + '&query=portal_type:Instance Tree AND title:%s' % context.getTitle() + connection_url
return base_url + '&query=portal_type:"Instance Tree" AND title:"%s"' % context.getTitle() + connection_url
if context.getPortalType() in ["Software Instance", "Slave Instance"]:
return base_url + '&query=portal_type:Software Instance AND title:%s AND ' % context.getTitle() + 'specialise_title:%s' % context.getSpecialiseTitle() + connection_url
return base_url + '&query=portal_type:"Software Instance" AND title:"%s" AND ' % context.getTitle() + 'specialise_title:"%s"' % context.getSpecialiseTitle() + connection_url
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment