ansible
ansible copied to clipboard
Proxy more display methods
SUMMARY
Proxy more display methods
ISSUE TYPE
- Bugfix Pull Request
ADDITIONAL INFORMATION
After looking more closely at the runner code, we don't need to proxy the individual v{1,5} calls, but just verbose. In the end the v methods are just shorthand to help us internally, so for reporting purposes, it makes more sense just to look at verbose. A method name could be reconstructed from the caplevel as well.
I shuffled some code slightly, and add decorators to handle the short circuiting for debug and verbose.
Technically speaking, system_warning and deprecated both have a short circuit in them, but it's far less common that they actually get short circuited, since the defaults are True, so I haven't done anything with them.