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:
parent
bc9a2da3e8
commit
a2219675f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue