[ms planning] fix potential key error due to additional entries in input maps
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Oct 2010 20:22:08 +0200
changeset 6651 4a0283b3ce0c
parent 6650 72f2fd93a622
child 6652 592c88c8f018
[ms planning] fix potential key error due to additional entries in input maps
server/msplanner.py
--- a/server/msplanner.py	Tue Oct 26 20:21:48 2010 +0200
+++ b/server/msplanner.py	Tue Oct 26 20:22:08 2010 +0200
@@ -1162,7 +1162,7 @@
         inputmapkey = tuple(sorted(solindices))
         inputmap = self._inputmaps.setdefault(inputmapkey, {})
         for varname, mapping in step.outputmap.iteritems():
-            if varname in inputmap and \
+            if varname in inputmap and not '.' in varname and  \
                    not (mapping == inputmap[varname] or
                         self._schema.eschema(solutions[0][varname]).final):
                 self._conflicts.append((varname, inputmap[varname]))