Fixed the supervisord.dead state idempotency

Fixes #50601
This commit is contained in:
Proskurin Kirill 2018-11-21 15:23:15 +00:00
parent 1b8a8acbbb
commit af386a2d97
No known key found for this signature in database
GPG key ID: C37A1DDDB950E71D

View file

@ -338,6 +338,7 @@ def dead(name,
else:
# process name doesn't exist
ret['comment'] = "Service {0} doesn't exist".format(name)
return ret
if is_stopped is True:
ret['comment'] = "Service {0} is not running".format(name)