Commit 1fc829c
committed
fix: ensure firewalld is responding to requests after starting
Cause: The firewalld can be slow to start up on some platforms.
Consequence: The firewall module can be called before the server is responding and
will raise an error if it cannot connect to the firewall daemon.
Fix: Ensure that firewall-cmd --state returns "running" before calling
the module.
Result: The firewall role works even if the server is slow to startup.
Signed-off-by: Rich Megginson <rmeggins@redhat.com>1 parent c7b2d11 commit 1fc829c
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
0 commit comments