Skip to content

Commit

Permalink
fix delete_param in rosapi (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
jihoonl committed Jul 5, 2017
1 parent 2412fa2 commit db74eca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rosapi/src/rosapi/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ def delete_param(name, params_glob):
return
# If the glob list is empty (i.e. false) or the parameter matches
# one of the glob strings, continue to delete the parameter.
with param_server_lock:
if has_param(name):
if has_param(name, params_glob):
with param_server_lock:
rospy.delete_param(name)



def search_param(name, params_glob):
if params_glob and not any(fnmatch.fnmatch(str(v), glob) for glob in params_glob):
# If the glob list is not empty and there are no glob matches,
Expand Down

0 comments on commit db74eca

Please sign in to comment.