From 4441737c05d94a64b48d13323c5961c343cc68de Mon Sep 17 00:00:00 2001 From: "Dr. Denis" Date: Fri, 16 Aug 2024 18:05:32 +0200 Subject: [PATCH] Update list_hardware_components.py --- .../ros2controlcli/verb/list_hardware_components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ros2controlcli/ros2controlcli/verb/list_hardware_components.py b/ros2controlcli/ros2controlcli/verb/list_hardware_components.py index 35c01299d0..6c93b65cc4 100644 --- a/ros2controlcli/ros2controlcli/verb/list_hardware_components.py +++ b/ros2controlcli/ros2controlcli/verb/list_hardware_components.py @@ -54,10 +54,10 @@ def main(self, *, args): f"Hardware Component {idx+1}\n\tname: {activity_color}{component.name}{bcolors.ENDC}\n\ttype: {component.type}" ) if hasattr(component, "plugin_name"): - plugin_name = component.plugin_name + plugin_name = f"{component.plugin_name}" # Keep compatibility to the obsolete filed name in Humble elif hasattr(component, "class_type"): - plugin_name = component.class_type + plugin_name = f"{component.class_type}" else: plugin_name = f"{bcolors.WARNING}plugin name missing!{bcolors.ENDC}"