mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-17 22:01:07 -07:00
rebase base playbook base (#39533)
* rebase base playbook base fixes issues with loop control allowing generic attributes it shouldn't
This commit is contained in:
parent
c8d287fece
commit
df1001577f
2 changed files with 38 additions and 36 deletions
|
@ -20,11 +20,10 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
from ansible.playbook.attribute import FieldAttribute
|
||||
from ansible.playbook.base import Base
|
||||
from ansible.playbook.base import FieldAttributeBase
|
||||
|
||||
|
||||
# FIXME: loopcontrol should not inherit attributes from base, just uses it for load
|
||||
class LoopControl(Base):
|
||||
class LoopControl(FieldAttributeBase):
|
||||
|
||||
_loop_var = FieldAttribute(isa='str', default='item')
|
||||
_index_var = FieldAttribute(isa='str')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue