From 85eeee818630aca574936ddd4b4f14ff4197b8f1 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 13:29:34 +0100 Subject: [PATCH] docs: Fix json path in asserts (#560) (#561) ##### 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 6e382a91..6a0d9d3d 100644 --- a/plugins/modules/docker_compose.py +++ b/plugins/modules/docker_compose.py @@ -226,8 +226,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: @@ -241,8 +241,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 @@ -289,8 +289,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/ @@ -322,8 +322,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 = '''