Skip to content

Commit

Permalink
Pass the node-name attribute through the substitution parser (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxgrey authored and ivanpauno committed Jan 17, 2020
1 parent f30cf77 commit cd00ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch_ros/launch_ros/actions/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def parse(cls, entity: Entity, parser: Parser):
kwargs['arguments'] = super()._parse_cmdline(args, parser)
node_name = entity.get_attr('node-name', optional=True)
if node_name is not None:
kwargs['node_name'] = node_name
kwargs['node_name'] = parser.parse_substitution(node_name)
package = entity.get_attr('pkg', optional=True)
if package is not None:
kwargs['package'] = parser.parse_substitution(package)
Expand Down

0 comments on commit cd00ee1

Please sign in to comment.