aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/fibrechannel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/fibrechannel.py b/sos/plugins/fibrechannel.py
index 72ec968c..570c385e 100644
--- a/sos/plugins/fibrechannel.py
+++ b/sos/plugins/fibrechannel.py
@@ -29,7 +29,8 @@ class Fibrechannel(Plugin, RedHatPlugin):
]
for loc in dirs:
- devs.extend([loc + device for device in os.listdir(loc)])
+ devs.extend([loc + device for device in os.listdir(loc)
+ if os.path.isdir(loc)])
if devs:
self.add_udev_info(devs, attrs=True)