Update include role to match the base class.
Use frozenset instead of tuple.
This commit is contained in:
@ -43,10 +43,10 @@ class IncludeRole(TaskInclude):
|
||||
circumstances related to the `- include_role: ...`
|
||||
"""
|
||||
|
||||
BASE = ('name', 'role') # type: tuple[str, ...] # directly assigned
|
||||
FROM_ARGS = ('tasks_from', 'vars_from', 'defaults_from', 'handlers_from') # type: tuple[str, ...] # used to populate from dict in role
|
||||
OTHER_ARGS = ('apply', 'public', 'allow_duplicates', 'rolespec_validate') # type: tuple[str, ...] # assigned to matching property
|
||||
VALID_ARGS = tuple(frozenset(BASE + FROM_ARGS + OTHER_ARGS)) # all valid args
|
||||
BASE = frozenset(('name', 'role')) # directly assigned
|
||||
FROM_ARGS = frozenset(('tasks_from', 'vars_from', 'defaults_from', 'handlers_from')) # used to populate from dict in role
|
||||
OTHER_ARGS = frozenset(('apply', 'public', 'allow_duplicates', 'rolespec_validate')) # assigned to matching property
|
||||
VALID_ARGS = BASE | FROM_ARGS | OTHER_ARGS # all valid args
|
||||
|
||||
# =================================================================================
|
||||
# ATTRIBUTES
|
||||
|
||||
Reference in New Issue
Block a user