community.hrobot icon indicating copy to clipboard operation
community.hrobot copied to clipboard

Change warning to failure on firewall config timeout

Open jdewinne opened this issue 1 month ago • 4 comments

SUMMARY

To be consistent with other module.fail_json usage when updating the firewall times out.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

community.hrobot

ADDITIONAL INFORMATION

There are 2 paths where a firewall timeout can happen. If a timeout occurs, the code should fail and not just warn.


jdewinne avatar Oct 28 '25 04:10 jdewinne

I'm OK with making this configurable, but I don't see why this should be a failure by default. Can you please elaborate on why you think this should be a failure?

felixfontein avatar Oct 28 '25 04:10 felixfontein

I'm OK with making this configurable, but I don't see why this should be a failure by default. Can you please elaborate on why you think this should be a failure?

Same is done on L624

jdewinne avatar Oct 28 '25 04:10 jdewinne

That is a very different situation: there the module is waiting for the firewall to be in a state where it can be configured. In the other situation, which you are changing, the configuration has already been applied, and the module is waiting for it to become active.

felixfontein avatar Oct 28 '25 04:10 felixfontein

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 99.89%. Comparing base (8f4cd53) to head (ee1cc9c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #184      +/-   ##
==========================================
- Coverage   99.89%   99.89%   -0.01%     
==========================================
  Files          61       61              
  Lines        4757     4750       -7     
  Branches      525      525              
==========================================
- Hits         4752     4745       -7     
  Misses          2        2              
  Partials        3        3              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Oct 28 '25 20:10 codecov[bot]