Don't use getattr in _get_parent_attribute to avoid recursion issues (#33595)

* Don't use getattr in _get_parent_attribute to avoid recursion issues

Fixes #23609

* Move extend/prepend to field attribute

Also removes _get_attr* methods that were basically just calling
_get_parent_attribute because it needed to set those params.

Also modifies _get_parent_attribute() to pull those values from the
FieldAttributes instead of using the ones passed into the function.

* Better fixes for _get_parent_attribute
This commit is contained in:
James Cammarata
2018-01-05 20:51:44 -06:00
committed by Brian Coca
parent ab5dbca47e
commit ebf971f931
7 changed files with 53 additions and 54 deletions

View File

@@ -35,7 +35,7 @@
include_tasks: prepare.yml
- name: Test in check-mode
include_tasks: tests.yml
import_tasks: tests.yml
vars:
in_check_mode: yes
check_mode: yes