From c24ea78f6ef57e8eb97f97f5459159e6f78eb353 Mon Sep 17 00:00:00 2001 From: David Jack Wange Olrik Date: Fri, 20 Jan 2023 13:19:33 +0100 Subject: [PATCH] docs: Fix json path in asserts (#560) ##### SUMMARY The current path to the running state does not include `output.services.` which it should. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr --- 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 96e997df..14ea8331 100644 --- a/plugins/modules/docker_compose.py +++ b/plugins/modules/docker_compose.py @@ -235,8 +235,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: @@ -250,8 +250,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 @@ -298,8 +298,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/ @@ -331,8 +331,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 = '''