diff --git a/ros2topic/ros2topic/verb/list.py b/ros2topic/ros2topic/verb/list.py index 63e8a34dc..2bee17cde 100644 --- a/ros2topic/ros2topic/verb/list.py +++ b/ros2topic/ros2topic/verb/list.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from ros2cli.node.direct import DirectNode from ros2cli.node.strategy import add_arguments as add_strategy_node_arguments from ros2cli.node.strategy import NodeStrategy from ros2topic.api import get_topic_names_and_types @@ -53,7 +52,7 @@ def add_arguments(self, parser, cli_name): def main(self, *, args): topic_info = [] - with DirectNode(args) as node: + with NodeStrategy(args) as node: topic_names_and_types = get_topic_names_and_types( node=node, include_hidden_topics=args.include_hidden_topics)