mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Change if conditions to please the linter.
This commit is contained in:
parent
76c21fe7ef
commit
409e88968d
2 changed files with 8 additions and 8 deletions
|
@ -103,10 +103,10 @@ def munin_config(fs):
|
|||
this_dev_name = this_dev_info.path.replace('/dev/', '')
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
|
||||
".label " + this_dev_name)
|
||||
if byte_warning != False:
|
||||
if byte_warning:
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
|
||||
".warning " + str(byte_warning))
|
||||
if byte_critical != False:
|
||||
if byte_critical:
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
|
||||
".critical " + str(byte_critical))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue