Skip to content

Commit

Permalink
fix the controller manager namespacing in spawner
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jul 27, 2024
1 parent 7edce1a commit 5e1023a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controller_manager/controller_manager/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ def main(args=None):
node = Node("spawner_" + controller_names[0])

if not controller_manager_name.startswith("/"):
spawner_namespace = node.get_namespace()
if spawner_namespace != "/":
controller_manager_name = f"{spawner_namespace}/{controller_manager_name}"
spawner_namespace = args.namespace
if spawner_namespace != "/" and spawner_namespace != "":
controller_manager_name = f"/{spawner_namespace}/{controller_manager_name}"
else:
controller_manager_name = f"/{controller_manager_name}"

Expand Down

0 comments on commit 5e1023a

Please sign in to comment.