Commit 9b91a8be authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_upgrader: Use activities is too much for upgrade the Upgrader

The upgrade of those few bt5 don't need to be launched on activities, specially because this script is manually invoked before the upgrade be launched.
parent f087bddd
portal = context.getPortalObject()
portal_type = 'Template Tool'
tag = 'upgrade_upgrader_%s' % random.randint(0, 2000)
method_kw = {'bt5_list':['erp5_forge', 'erp5_upgrader', 'slapos_upgrader'],
template_tool = context.getPortalObject().portal_templates
template_tool.updateRepositoryBusinessTemplateList(
template_tool.getRepositoryList())
method_kw = {'bt5_list': ['erp5_forge', 'erp5_upgrader',
'slapos_upgrader', 'slapos_configurator'],
'deprecated_after_script_dict': None,
'deprecated_reinstall_set': None,
'dry_run': False,
......@@ -10,8 +13,4 @@ method_kw = {'bt5_list':['erp5_forge', 'erp5_upgrader', 'slapos_upgrader'],
'update_catalog': False}
portal.portal_catalog.searchAndActivate(
portal_type=portal_type,
method_id='upgradeSite',
method_kw=method_kw,
activate_kw=dict(tag=tag, priority=2))
template_tool.upgradeSite(**method_kw)
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