Skip to content

Commit

Permalink
Match lower case when start/stop/restart a watcher
Browse files Browse the repository at this point in the history
Issue #927
  • Loading branch information
Carlos committed Sep 16, 2015
1 parent 97535d9 commit f57e431
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions circus/commands/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ def execute_watcher_start_stop_restart(command, arbiter, props,
if match == 'simple':
watchers = [command._get_watcher(arbiter, props['name'])]
else:
watcher_name = props['name'].lower()
if match == 'glob':
name = re.compile(fnmatch.translate(props['name']))
name = re.compile(fnmatch.translate(watcher_name))
elif match == 'regex':
name = re.compile(props['name'])
name = re.compile(watcher_name)
else:
raise MessageError("unknown match method %s" % match)
watchers = [watcher
Expand Down

0 comments on commit f57e431

Please sign in to comment.