1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Try to please linter with whitespaces arround equals.

This does not seam logical, because it explicitly want's spaces arround equal signs when setting a variable, but you musn't use them in parameters. But well, whatever makes the linter happy.
This commit is contained in:
HaseHarald 2021-04-18 14:15:17 +02:00 committed by Lars Kruse
parent 409e88968d
commit 50265ccea9
2 changed files with 27 additions and 27 deletions

View file

@ -75,19 +75,19 @@ import sys
def munin_config(fs):
fsid = str(fs.fsid).replace('-', '_')
byte_warning = os.getenv('byte_warning', default = False)
byte_critical = os.getenv('byte_critical', default = False)
byte_warning = os.getenv('byte_warning', default=False)
byte_critical = os.getenv('byte_critical', default=False)
byte_warning = os.getenv('byte_' + fsid + '_warning',
default = byte_warning)
default=byte_warning)
byte_critical = os.getenv('byte_' + fsid + '_critical',
default = byte_critical)
default=byte_critical)
percent_warning = os.getenv('percent_warning', default = 95)
percent_critical = os.getenv('percent_critical', default = 98)
percent_warning = os.getenv('percent_warning', default=95)
percent_critical = os.getenv('percent_critical', default=98)
percent_warning = os.getenv('percent_' + fsid + '_warning',
default = percent_warning)
default=percent_warning)
percent_critical = os.getenv('percent_' + fsid + '_critical',
default = percent_critical)
default=percent_critical)
print("multigraph btrfs_device_usage_byte_" + fsid)
print("graph_title btrfs usage by device in bytes on " + fs.path)