Skip to content

Commit

Permalink
Fix service shutdown verification logic
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Nov 9, 2023
1 parent ec72ec3 commit ad0593f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion molecule/offline/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- name: Verify service run status
ansible.builtin.fail:
msg: "Mongos service is running"
when: services[_service].state != "inactive"
when: services[_service].state not in ["inactive", "stopped"]

- name: Verify service boot status
ansible.builtin.fail:
Expand Down
4 changes: 2 additions & 2 deletions molecule/stop/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- name: Verify service run status
ansible.builtin.fail:
msg: "Mongos service is running"
when: services[_service].state != "inactive"
when: services[_service].state not in ["inactive", "stopped"]

- name: Verify service boot status
ansible.builtin.fail:
Expand All @@ -36,7 +36,7 @@
- name: Verify service run status
ansible.builtin.fail:
msg: "MongoDB service is running"
when: services[_service].state != "inactive"
when: services[_service].state not in ["inactive", "stopped"]

- name: Verify service boot status
ansible.builtin.fail:
Expand Down

0 comments on commit ad0593f

Please sign in to comment.