diff options
-rw-r--r-- | sos/plugins/__init__.py | 19 |
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) |