[RFE] refactor logging of network module #29
Labels
blocker
Issue to fix for next release
enhancement
Request for Enhancement
help wanted
Possible issue for newcomers
Currently, the module collects all logging statements, and at the end returns them as "warnings", so that they are shown by ansible. Obviously, these are not really warnings, but rather debug information.
Instead, the logging messages should be returned in a different json field that is ignored by ansible. Then, the
tasks/main.yml
should have a follow-updebug
task that prints the returned variable.I guess, in the failure case, the
network_connections
task must run ignoring failures to reach thedebug
statement. Then, a follow up task should check whether thenetwork_connections
task failed and abort.The text was updated successfully, but these errors were encountered: