diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-10-16 09:42:24 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-10-16 09:42:24 +0200 |
commit | 5947e9da36e17f352c5f13aeccb00d877f21fb37 (patch) | |
tree | b2c987ab95c756068e9208d83aba2db33f1bc3dd | |
parent | 0ac1bcb76b2194b35b835cc9a092104e2a809091 (diff) |
glances.conf FS hide not applying #1666
-rw-r--r-- | glances/plugins/glances_fs.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/glances/plugins/glances_fs.py b/glances/plugins/glances_fs.py index 6697628a..56431d48 100644 --- a/glances/plugins/glances_fs.py +++ b/glances/plugins/glances_fs.py @@ -106,7 +106,7 @@ class Plugin(GlancesPlugin): # Loop over fs for fs in fs_stat: - # Shall we display the stats ? + # Hide the stats if the mount point is in the exclude list if not self.is_display(fs.mountpoint): continue @@ -128,6 +128,12 @@ class Plugin(GlancesPlugin): 'percent': fs_usage.percent, 'key': self.get_key(), } + + # Hide the stats if the device name is in the exclude list + # Correct issue: glances.conf FS hide not applying #1666 + if not self.is_display(fs_current['device_name']): + continue + stats.append(fs_current) elif self.input_method == 'snmp': |