From 7485ec0f8bc7bb2415fb98fe86bc506e93085268 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 13:29:44 +0100 Subject: [PATCH] docs: Fix json path in asserts (#560) (#562) ##### SUMMARY The current path to the running state does not include `output.services.` which it should. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr (cherry picked from commit c24ea78f6ef57e8eb97f97f5459159e6f78eb353) Co-authored-by: David Jack Wange Olrik --- plugins/modules/docker_compose.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/modules/docker_compose.py b/plugins/modules/docker_compose.py index 8ebb2fd9..66c38944 100644 --- a/plugins/modules/docker_compose.py +++ b/plugins/modules/docker_compose.py @@ -228,8 +228,8 @@ EXAMPLES = ''' - ansible.builtin.assert: that: - - "not web.flask_web_1.state.running" - - "not db.flask_db_1.state.running" + - "not output.services.web.flask_web_1.state.running" + - "not output.services.db.flask_db_1.state.running" - name: Restart services community.docker.docker_compose: @@ -243,8 +243,8 @@ EXAMPLES = ''' - ansible.builtin.assert: that: - - "web.flask_web_1.state.running" - - "db.flask_db_1.state.running" + - "output.services.web.flask_web_1.state.running" + - "output.services.db.flask_db_1.state.running" - name: Scale the web service to 2 hosts: localhost @@ -291,8 +291,8 @@ EXAMPLES = ''' - ansible.builtin.assert: that: - - "web.flask_web_1.state.running" - - "db.flask_db_1.state.running" + - "output.services.web.flask_web_1.state.running" + - "output.services.db.flask_db_1.state.running" - name: Run with inline Compose file version 1 # https://docs.docker.com/compose/compose-file/compose-file-v1/ @@ -324,8 +324,8 @@ EXAMPLES = ''' - ansible.builtin.assert: that: - - "web.flask_web_1.state.running" - - "db.flask_db_1.state.running" + - "output.services.web.flask_web_1.state.running" + - "output.services.db.flask_db_1.state.running" ''' RETURN = '''