diff options
author | Edi Feschiyan <edi.feschiyan@konsulko.com> | 2020-07-13 14:41:21 +0300 |
---|---|---|
committer | Edi Feschiyan <edi.feschiyan@konsulko.com> | 2020-07-13 14:41:21 +0300 |
commit | 8d8873ddd2c7f774c2191b57f12c5fdda4e39e14 (patch) | |
tree | ed27d6925721eddcc3beb5dfd3c11cb740a72ae3 | |
parent | d358a2bc1f9c750e8c16b0ad70b4dff35b92a9be (diff) |
replacing 'is' with '==' comparison causing warnings
-rw-r--r-- | pyagl/services/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyagl/services/base.py b/pyagl/services/base.py index 1940393..231ebb1 100644 --- a/pyagl/services/base.py +++ b/pyagl/services/base.py @@ -173,7 +173,7 @@ class AGLBaseService: exit(1) pidres = await c.run(f'systemctl show --property MainPID --value {servicename.stdout.strip()}') pid = int(pidres.stdout.strip(), 10) - if pid is 0: + if pid == 0: logging.warning(f'Service {servicename.stdout.strip()} is stopped') return None else: |