fix loop_control templating (#36124)

* fix loop_control templating

- properly template ALL properites for loop_control
- loop_control inherits from base, it should not, but needs validate/attribute functionality

fixes #24719
This commit is contained in:
Brian Coca 2018-02-14 15:52:19 -05:00 committed by GitHub
parent b403653bd2
commit 8de4f7cd9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View file

@ -23,6 +23,7 @@ from ansible.playbook.attribute import FieldAttribute
from ansible.playbook.base import Base
# FIXME: loopcontrol should not inherit attributes from base, just uses it for load
class LoopControl(Base):
_loop_var = FieldAttribute(isa='str', default='item')