1
0
Fork 0

fix disk plugin/plugout problem

when udev sends remove event it does not send any device
attributes with it so _device_is_supported check must be omitted

Resolves: rhbz#1595156
This commit is contained in:
Tomas Korbar 2018-12-12 14:48:09 +01:00
parent bc9a2da3e8
commit a2219675f2

View file

@ -50,7 +50,7 @@ class DiskPlugin(hotplug.Plugin):
self._hardware_inventory.unsubscribe(self)
def _hardware_events_callback(self, event, device):
if self._device_is_supported(device):
if self._device_is_supported(device) or event == "remove":
super(DiskPlugin, self)._hardware_events_callback(event, device)
def _added_device_apply_tuning(self, instance, device_name):