Fix uninitialized variable in deserialize method (#18037)

The bug was introduced with commit 06d4f4ad0e.
Added a simple test.
This commit is contained in:
Thilo Uttendorfer
2016-10-21 04:54:16 +02:00
committed by jctanner
parent 0a60cceaf0
commit cf0da0948d
2 changed files with 12 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ class Block(Base, Become, Conditional, Taggable):
p = TaskInclude()
elif parent_type == 'HandlerTaskInclude':
p = HandlerTaskInclude()
p.deserialize(pb_data)
p.deserialize(parent_data)
self._parent = p
self._dep_chain = self._parent.get_dep_chain()