1
0
Fork 0

plugin_disk: Mark _device_is_supported as a classmethod

This fixes a pylint error.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2017-02-13 17:36:10 +01:00
parent 66d550b94d
commit ad6d18bb62

View file

@ -33,6 +33,7 @@ class DiskPlugin(hotplug.Plugin):
self._assigned_devices = set()
self._free_devices = self._devices.copy()
@classmethod
def _device_is_supported(cls, device):
return device.device_type == "disk" and \
device.attributes.get("removable", None) == "0" and \