Commit 0869ce77 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Double-check catalog result on Constraint (sucessor)

   Due slow indexation (on concurrent requests) the values on catalog can be outdated whenever getSucessorRelatedList is called
parent 029f1c52
......@@ -28,7 +28,7 @@
<key> <string>expression</string> </key>
<value> <string encoding="cdata"><![CDATA[
python: len(context.getSuccessorRelatedList()) <= 1
python: len([x for x in context.getSuccessorRelatedValueList() if context.getRelativeUrl() in x.getSuccessorList()]) <= 1
]]></string> </value>
</item>
......
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