commit c7f6baf7f4dfab94420718011da33af4ec52419e Author: Arne Wiebalck Date: Tue Oct 13 08:29:53 2020 +0200 [trivial] Remove redundant list conversion Follow-up to https://review.opendev.org/#/c/756300/ Change-Id: Ibc6c044e24dde82928f19a9b9a7eaf68be53fb0e diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index a7b8ba3..9e13688 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -1898,7 +1898,7 @@ class GenericHardwareManager(HardwareManager): # check for missing devices and re-add them actual_components = _get_actual_component_devices(md_device) - missing = list(set(component_devices) - set(actual_components)) + missing = set(component_devices) - set(actual_components) for dev in missing: try: LOG.warning('Found %s to be missing from %s '