Skip to content

Commit

Permalink
Corrected bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Oct 11, 2019
1 parent b8c9a75 commit fa1ef33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ros2cli/ros2cli/daemon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __getattr__(self, name):

def wrapper():
self.reset_if_addresses_changed()
return self.node.__getattr__(name)
return self.node.__getattr__(name)()
wrapper.__name__ = attr.__name__

if inspect.ismethod(attr):
Expand Down
2 changes: 1 addition & 1 deletion ros2cli/ros2cli/node/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def spawn_daemon(args, wait_until_spawned=None):
# the arguments are only passed for visibility in e.g. the process list
'--rmw-implementation', rmw_implementation_identifier,
'--ros-domain-id', str(ros_domain_id)])
if not args.debug:
if not hasattr(args, 'debug') or not args.debug:
kwargs['stdout'] = subprocess.DEVNULL
kwargs['stderr'] = subprocess.DEVNULL
subprocess.Popen(cmd, **kwargs)
Expand Down

0 comments on commit fa1ef33

Please sign in to comment.