Commit 3c381b3
committed
(MODULES-11580) Do not combine stderr and stdout when scanning rules
- We get the output of 'ip(6)tables-save' and parse the contents to get the iptables rules.
- When stderr is combined with stdout, the output of the command can be unexpected causing issues when parsing.
- This commit disables the combination of stdout and stderr for this reason.
- Setting 'failonfail' makes sure that any error returned by 'ip(6)tables-save' command is reported as failure to the user without attempting to parse its output.
- Adjust rspecs accordingly.1 parent f2b3c6d commit 3c381b3
File tree
3 files changed
+5
-5
lines changed- lib/puppet/provider/firewall
- spec/unit/puppet/provider
- firewallchain
- firewall
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
| 347 | + | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
0 commit comments