Commit 0008d1b
fix: pmie webhook configuration for unconfigured system
If pmie never ran before, then /var/lib/pcp/config/pmie/config.default
does not exist, and the `lineinfile` check mode gives `item.found == -1`
instead of `0`. In that case we still want to configure the webhook.
This was previously hidden as the tests run on an unclean VM (from
previous tests) which caused the config file to be written. But it fails
when either running linux-system-roles/metrics'
tests_verify_notification.yml in isolation, or running against a
container build target where services don't run.1 parent 3ae028f commit 0008d1b
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments