Commit 977467b2 authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: do not try to upgrade instance tree created by Remote Node

parent 09e3094d
from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery
portal = context.getPortalObject()
portal.portal_catalog.searchAndActivate(
portal_type='Instance Tree',
validation_state = 'validated',
# Do not try to upgrade instance tree created by Remote Node
# as it will only lead to software release url inconsistency
title=NegatedQuery(Query(title='_remote_%')),
method_id = 'InstanceTree_createUpgradeDecision',
activate_kw = {'tag':tag},
**{"slapos_item.slap_state": ['start_requested', 'stop_requested']}
......
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