mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
corrected service condition
This commit is contained in:
@@ -626,7 +626,7 @@ class LinuxService(Service):
|
||||
if "stop" in cleanout:
|
||||
self.running = False
|
||||
elif "run" in cleanout:
|
||||
self.running = ("not " in cleanout)
|
||||
self.running = not ("not " in cleanout)
|
||||
elif "start" in cleanout and "not " not in cleanout:
|
||||
self.running = True
|
||||
elif 'could not access pid file' in cleanout:
|
||||
|
||||
Reference in New Issue
Block a user