Use first uppercase letter for all handlers #2461
No reviewers
Labels
No labels
freeze-break-request
post-freeze
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/ansible#2461
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "handlers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.
I went through all
notify:
occurrences and fixed them by runningThen I went through all the changes and removed the ones that wasn't
expected to be changed.
Fixes https://pagure.io/fedora-infrastructure/issue/12391
Signed-off-by: Michal Konecny mkonecny@redhat.com
rebased onto
d710450269
rebased onto
d710450269
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/debb7ede36794cd7a317fb6bcf32b2f2
Thanks for this! I looked at yq and perl for doing this and neither seemed easy.
For anyone else reviewing, it will be a lot easier if you download the patch and run it through diff-so-fancy (yum install diff-so-fancy).
The only problem I saw was the missing 'r' before list, here:
service: name=mirrorlist-server state=restarted
...there were a couple of extra changes with removing _'s or quotes, but I think they are fine.
So, note that service module you are passing the name of the unit file on the os. It's 100% not capatlized.
I just found another case that was meesed up:
2ad6517991
I am wondering if we shouldn't just change everything back to lower case and tell ansible-lint to stop checking this. ;(
Is it only handlers that it complains about this on? Or every name: ?
rebased onto
2ad6517991
@james Fixed that
@kevin It basically complains about every name :/
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/b1f63fc3a01e481287e5425f6e5970b8
Lowercase spotted!
I've also noticed lowercased handler names in
roles/rabbit/queue/handlers/main.yml
androles/zabbix/zabbix_agent/handlers/main.yml
@abompard I must have missed those, thanks for pointing them out.
rebased onto
2ad6517991
Fixed the ones that @abompard found.
I can probably create some simple script that will fix the uppercase letters in every name and call of the task.
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/b2bbcafbcf6e403d89a07aa5d41f5137
rebased onto
2ad6517991
Found another handler I didn't updated, but the reason was that it wasn't called anywhere.
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/63ac0c0bf6424632b140e969f0c05f64
rebased onto
2ad6517991
ok. Lets give this a go.
Hopefully things are better after it.
Pull-Request has been merged by kevin
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/646fc712b350421984d0f3fab1db43be