diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-03-21 10:29:47 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-21 09:59:49 +0000 |
commit | 27aa22ff917cc20f9cc9a9e1e6a1b1a4a46042da (patch) | |
tree | 52eb0e0cc332a54210796dd18e63f0bfd507dfcc | |
parent | f2b3c72d31e098644566b7a7297082464ec7141d (diff) | |
download | sos-27aa22ff917cc20f9cc9a9e1e6a1b1a4a46042da.tar.gz |
[networking] import os.listdir method
Resolves: #1608
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/networking.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index 07a7285d..015fb19e 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -7,6 +7,7 @@ # See the LICENSE file in the source distribution for further information. from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin +from os import listdir import re @@ -156,7 +157,7 @@ class Networking(Plugin): # Get ethtool output for every device that does not exist in a # namespace. - for eth in os.listdir("/sys/class/net/"): + for eth in listdir("/sys/class/net/"): # skip 'bonding_masters' file created when loading the bonding # module but the file does not correspond to a device if eth == "bonding_masters": |