Commit 80da84b2 authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos_cloud] Don't reindex invalidated instances

Once a interaction is trigger after _setPredecessor don't propagate reindexation to invalidated software Instances.
parent ecc8bded
......@@ -54,7 +54,8 @@
tag = document.getPath() + \'_reindex\'\n
document.activate(after_tag=after_tag).reindexObject(activate_kw=dict(tag=tag))\n
for subdocument in document.getPredecessorValueList(portal_type=\'Software Instance\'):\n
reindexRecursively(subdocument, tag)\n
if subdocument.getValidationState() != \'invalidated\':\n
reindexRecursively(subdocument, tag)\n
\n
reindexRecursively(state_change[\'object\'],)\n
</string> </value>
......
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