Skip to content

Commit

Permalink
Allow empty machine tag.
Browse files Browse the repository at this point in the history
Fixes ros#274.
  • Loading branch information
peci1 authored Feb 16, 2020
1 parent 902fb00 commit e3d9c9d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/roslaunch/src/roslaunch/xmlloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ def _node_tag(self, tag, context, ros_config, default_machine, is_test=False, ve
required = self.opt_attrs(tag, context, ('machine', 'args',
'output', 'respawn', 'respawn_delay', 'cwd',
'launch-prefix', 'required'))
if tag.hasAttribute('machine') and not len(machine.strip()):
raise XmlParseException("<node> 'machine' must be non-empty: [%s]"%machine)
if not machine and default_machine:
machine = default_machine.name
# validate respawn, required
Expand Down

0 comments on commit e3d9c9d

Please sign in to comment.