ansible-lint --fix
should uppercase all handlers passed to notify
#4150
Labels
ansible-lint --fix
should uppercase all handlers passed to notify
#4150
Summary
When running
ansible-lint --fix
on a playbook that contains task(s) with thenotify
parameter using a list of handlers as its value, these handlers are only fixed for aname[casing]
violation if they exist underhandlers
as a task. Related to #4028.Issue Type
OS / ENVIRONMENT
pip
pip
(also testedmain
branch)STEPS TO REPRODUCE
Setup
Run
ansible-lint --fix "./playbooks/foo.yml"
Desired Behavior
I would have expected that
ansible-lint --fix
would have renamed all handlers passed tonotify
to begin with an upper case letter, regardless of their existence underhandlers
as a task.Actual Behavior
The actual behavior is that the
my handler
handler does get fixed forname[casing]
, but themy handler 1
andmy handler 2
handlers do not.Without verbosity
Modified 1 files. Passed: 0 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'production'.
With verbosity
The text was updated successfully, but these errors were encountered: