Commit 6352b4c0 authored by Boxiang Sun's avatar Boxiang Sun

fixup

parent c0523612
......@@ -899,10 +899,11 @@ class Partition(object):
print(all_process)
for process in all_process:
if 'on-watch' in process['name'] and process['statename'] != "RUNNING":
for on_watch_service in service_list:
if on_watch_service in process['name']:
on_watch_index = process['name'].index('-on-watch')
on_watch_service_name = process['name'][0:on_watch_index]
if on_watch_service_name in service_list:
self.logger.info('On watch service %r is not running' % process['name'])
bad_service_list.append(process['name'] + '-on-watch')
bad_service_list.append(process['name'])
if len(bad_service_list) > 0:
raise ChildProcessError(
"The following on-watch service(es) is not running:\n%s\n\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment