# matches the character '?'.
#
- expanded_files = glob.glob(defined_fs)
+ expanded_paths = glob.glob(defined_fs)
#
# Only mounted filesystem will be considered when
# /etc/zabbix_filesystems_limits.conf.
#
- for expanded_fs in expanded_files:
+ for expanded_fs in expanded_paths:
if os.path.ismount(expanded_fs):
defined_filesystems[expanded_fs] = [percent_limit, size_limit]
else:
print "-1"
- except Exception, e:
- print e
+ except Exception, exc:
+ raise exc
# ############################################