Python: Add postupdate nodes for subscripts.

This drops reverse read inconsistencies on saltstack from 14909 to 1353.
This commit is contained in:
Rasmus Lerchedahl Petersen
2021-01-24 16:17:34 +01:00
parent 361bee851a
commit ad39bfb2ff
2 changed files with 3 additions and 0 deletions

View File

@@ -76,6 +76,8 @@ class ReadPreUpdateNode extends NeedsSyntheticPostUpdateNode, CfgNode {
node = a.getObject().getAFlowNode() and
a.getCtx() instanceof Load
)
or
exists(SubscriptNode s | node = s.getObject())
}
override string label() { result = "read" }