diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2017-01-09 15:45:11 -0500 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2017-01-09 15:45:26 -0500 |
commit | ad78ea60622cef1d9c8ee44f2d00d5f012991a32 (patch) | |
tree | c20b29ec90cf6f8f22139befc057a32e7b8aa0dd | |
parent | a9d844c0892ccefb69bb5abae6ef5790d407a865 (diff) | |
download | ansible-modules-core-ad78ea60622cef1d9c8ee44f2d00d5f012991a32.tar.gz |
corrected service logic
-rw-r--r-- | system/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/service.py b/system/service.py index 04c671c9..d47f63f5 100644 --- a/system/service.py +++ b/system/service.py @@ -603,7 +603,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: |