Commit cdc6c95f authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: use getPreferredHateoasUrl to generate the compute token

improve consistency with slaptool (configure this value in 1 place only)
parent 9d616e9d
......@@ -15,9 +15,13 @@ if slapos_master_api is None:
# This url is only used to call 1 (one) python script.
# it could be whatever url able to reach erp5
slapos_master_web_url = web_site.getLayoutProperty(
"configuration_slapos_master_web_url",
default=web_site.absolute_url()
slapos_master_web_url = portal.portal_preferences.getPreferredHateoasUrl(None)
if slapos_master_web_url is None:
return context.Base_redirect(
keep_items={
'portal_status_message': 'slapos_master_web_url is not configured',
'portal_status_level': 'error'
}
)
# XXX this url is HARDCODED on the client side
......
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