Commit 5183e63e authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: disable all monitor links

parent 768544c2
return ""
# sadly, monitor is not ready yet to handle another master
# AND one may want to use a different url for its monitor app
"""
base_url = 'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Software Instance" AND '
if context.getPortalType() == "Instance Tree":
......@@ -9,3 +14,7 @@ if context.getPortalType() == "Instance Tree":
if context.getPortalType() in ["Software Instance", "Slave Instance"]:
return base_url + "reference:%s" % context.getReference()
if context.getPortalType() == "Compute Node":
return base_url + "aggregate_reference:%s" % context.getReference()
"""
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