1
0
Fork 0
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:
HaseHarald 2021-04-18 14:01:31 +02:00 committed by Lars Kruse
parent 76c21fe7ef
commit 409e88968d
2 changed files with 8 additions and 8 deletions

View file

@ -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))