diff options
-rw-r--r-- | sos/plugins/block.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/block.py b/sos/plugins/block.py index 95ed57a8..864956b1 100644 --- a/sos/plugins/block.py +++ b/sos/plugins/block.py @@ -43,7 +43,7 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): if os.path.isdir("/sys/block"): for disk in os.listdir("/sys/block"): - if disk in [".", ".."] or disk.startswith("ram"): + if disk.startswith("ram"): continue disk_path = os.path.join('/dev/', disk) self.add_cmd_output([ |