Permalink
Browse files

Fix the handling of process names that belong to a group

  • Loading branch information...
1 parent 9b5e58e commit 6ae6727ab989a482d2c64584b603fdae0fd877d4 @e98cuenc e98cuenc committed Jun 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 superlance/httpok.py
View
@@ -34,7 +34,7 @@
process named 'process_name' if it's in the RUNNING state when
the URL returns an unexpected result or times out. If this
process is part of a group, it can be specified using the
- 'process_name:group_name' syntax.
+ 'group_name:process_name' syntax.
-a -- Restart any child of the supervisord under in the RUNNING state
if the URL returns an unexpected result or times out. Overrides
@@ -222,7 +222,7 @@ def write(msg):
name = spec['name']
group = spec['group']
self.restart(spec, write)
- namespec = make_namespec(name, group)
+ namespec = make_namespec(group, name)
if name in waiting:
waiting.remove(name)
if namespec in waiting:
@@ -232,7 +232,7 @@ def write(msg):
for spec in specs:
name = spec['name']
group = spec['group']
- namespec = make_namespec(name, group)
+ namespec = make_namespec(group, name)
if (name in self.programs) or (namespec in self.programs):
self.restart(spec, write)
if name in waiting:

0 comments on commit 6ae6727

Please sign in to comment.