Révision c81c20ab
unify DIRTYCONFIG handling in shell and python plugins
The following issues were fixed:- comparison too broad (e.g. "0" misinterpreted as "true")
- python: comparing string with number (is never equal in python)
- unwanted non-zero exitcode (compound command "&&" as last command in
shell code block (e.g. "case" or "if" branch)) - access to unset variable (shell style issue)
| plugins/solaris/fsstat_act_ | ||
|---|---|---|
| 163 | 163 |
;; |
| 164 | 164 |
config) |
| 165 | 165 |
config |
| 166 |
[ "${MUNIN_CAP_DIRTYCONFIG:-}" = "1" ] && fetch
|
|
| 166 |
if [ "${MUNIN_CAP_DIRTYCONFIG:-0}" = "1" ]; then fetch; fi
|
|
| 167 | 167 |
;; |
| 168 | 168 |
*) |
| 169 | 169 |
fetch |
Formats disponibles : Unified diff