diff options
author | Strahinja Kustudic <kustodian@gmail.com> | 2019-09-04 16:39:29 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-09-04 12:08:03 -0700 |
commit | 3558d38b17784bd395b07613a3c91bc1ceec65d4 (patch) | |
tree | c2aa72674f64624681d308b61b6f40a54097687e /lib/ansible/modules/system/systemd.py | |
parent | 8141aa9a555a7a8ea88f2fd394b6574039344dd6 (diff) | |
download | ansible-3558d38b17784bd395b07613a3c91bc1ceec65d4.tar.gz |
[stable-2.9] Fix systemd start state with deactivating service state
(cherry picked from commit ee4b3b8854)
Co-authored-by: Strahinja Kustudic <kustodian@gmail.com>
Diffstat (limited to 'lib/ansible/modules/system/systemd.py')
-rw-r--r-- | lib/ansible/modules/system/systemd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/system/systemd.py b/lib/ansible/modules/system/systemd.py index cd46316c05..ff03d3e296 100644 --- a/lib/ansible/modules/system/systemd.py +++ b/lib/ansible/modules/system/systemd.py @@ -271,7 +271,7 @@ from ansible.module_utils._text import to_native def is_running_service(service_status): - return service_status['ActiveState'] in set(['active', 'activating', 'deactivating']) + return service_status['ActiveState'] in set(['active', 'activating']) def is_deactivating_service(service_status): |