Merge pull request #9 from olysonek/plugin_scsi_host
plugin_scsi_host: Mark _device_is_supported as a classmethod
This commit is contained in:
commit
e9a352e16f
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ class DiskPlugin(hotplug.Plugin):
|
||||||
self._assigned_devices = set()
|
self._assigned_devices = set()
|
||||||
self._free_devices = self._devices.copy()
|
self._free_devices = self._devices.copy()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
def _device_is_supported(cls, device):
|
def _device_is_supported(cls, device):
|
||||||
return device.device_type == "scsi_host"
|
return device.device_type == "scsi_host"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue