aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2018-12-07 11:31:20 -0500
committerJake Hunsaker <jhunsake@redhat.com>2020-04-07 16:43:35 -0400
commita7af4324bd6f91263954516e04488fcd28161b88 (patch)
treea8d4ec03b1a1ee1c249f19864ba13d3b4e1998b3
parentf3482fe5f53621ed3de386c6e7d5478890f597c0 (diff)
downloadsos-a7af4324bd6f91263954516e04488fcd28161b88.tar.gz
[Plugin] Remove add_udev_info method
Removes the add_udev_info method as its original purpose was to easily iterate over a list of devices which is now handled (better) by add_blockdev_cmd. Resolves: #1508 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/__init__.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index f1e12700..103ffc72 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -1685,25 +1685,6 @@ class Plugin(object):
self._add_cmd_output(cmd=journal_cmd, timeout=timeout,
sizelimit=log_size, pred=pred)
- def add_udev_info(self, device, attrs=False):
- """Collect udevadm info output for a given device
-
- :param device: A string or list of strings of device names or sysfs
- paths. E.G. either '/sys/class/scsi_host/host0' or
- '/dev/sda' is valid.
- :param attrs: If True, run udevadm with the --attribute-walk option.
- """
- udev_cmd = 'udevadm info'
- if attrs:
- udev_cmd += ' -a'
-
- if isinstance(device, six.string_types):
- device = [device]
-
- for dev in device:
- self._log_debug("collecting udev info for: %s" % dev)
- self._add_cmd_output(cmd='%s %s' % (udev_cmd, dev))
-
def _expand_copy_spec(self, copyspec):
return glob.glob(copyspec)