Skip to content

Commit

Permalink
fixup! Bring back --controller-manager-timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
Timple authored and bmagyar committed Jun 5, 2024
1 parent f267dc1 commit d173d98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def reload_controller_libraries(node, controller_manager_name, force_kill, servi
)


def set_hardware_component_state(node, controller_manager_name, component_name, lifecyle_state, service_timeout=0.0):
def set_hardware_component_state(
node, controller_manager_name, component_name, lifecyle_state, service_timeout=0.0
):
request = SetHardwareComponentState.Request()
request.name = component_name
request.target_state = lifecyle_state
Expand Down
4 changes: 3 additions & 1 deletion controller_manager/controller_manager/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def main(args=None):
if controller_namespace:
prefixed_controller_name = controller_namespace + "/" + controller_name

if is_controller_loaded(node, controller_manager_name, prefixed_controller_name, timeout):
if is_controller_loaded(
node, controller_manager_name, prefixed_controller_name, timeout
):
node.get_logger().warn(
bcolors.WARNING
+ "Controller already loaded, skipping load_controller"
Expand Down

0 comments on commit d173d98

Please sign in to comment.