mirror of https://github.com/ansible/ansible.git
Merge class dict with parent dict when creating meta attributes
In some situations, where the Base class defines an Attribute, the
BaseMeta class doesn't properly see the _get_parent_attribute or
_get_attr_<whatever> methods because of multiple layers of subclasses
(ie. Handler, which subclasses Task). This addresses that by merging
the __dict__ of the parent with the current classes __dict__ meaning
all future iterations see available special methods.
Fixes #18378
(cherry picked from commit 4794b5da45)
pull/18458/head
parent
58d8a0fca0
commit
caba50c778
Loading…
Reference in New Issue