From c7f6baf7f4dfab94420718011da33af4ec52419e Mon Sep 17 00:00:00 2001 From: Arne Wiebalck Date: Tue, 13 Oct 2020 08:29:53 +0200 Subject: [PATCH] [trivial] Remove redundant list conversion Follow-up to https://review.opendev.org/#/c/756300/ Change-Id: Ibc6c044e24dde82928f19a9b9a7eaf68be53fb0e --- ironic_python_agent/hardware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index a7b8ba3b8..9e13688af 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 '