[PR #10617/c84f16c5 backport][stable-11] scaleway_lb: fix RETURN docs (#10686)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.16) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run

scaleway_lb: fix RETURN docs (#10617)

* scaleway_lb: fix RETURN docs

* remove outer dict from sample content

(cherry picked from commit c84f16c5e9)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-08-17 17:28:39 +02:00 committed by GitHub
commit 840b1b82ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,36 +113,40 @@ EXAMPLES = r"""
region: fr-par region: fr-par
""" """
RETURNS = """ RETURN = r"""
{ scaleway_lb:
"scaleway_lb": { description: The load-balancer object.
returned: success
type: dict
sample:
{
"backend_count": 0, "backend_count": 0,
"frontend_count": 0, "frontend_count": 0,
"description": "Description of my load-balancer", "description": "Description of my load-balancer",
"id": "00000000-0000-0000-0000-000000000000", "id": "00000000-0000-0000-0000-000000000000",
"instances": [ "instances": [
{ {
"id": "00000000-0000-0000-0000-000000000000", "id": "00000000-0000-0000-0000-000000000000",
"ip_address": "10.0.0.1", "ip_address": "10.0.0.1",
"region": "fr-par", "region": "fr-par",
"status": "ready" "status": "ready"
}, },
{ {
"id": "00000000-0000-0000-0000-000000000000", "id": "00000000-0000-0000-0000-000000000000",
"ip_address": "10.0.0.2", "ip_address": "10.0.0.2",
"region": "fr-par", "region": "fr-par",
"status": "ready" "status": "ready"
} }
], ],
"ip": [ "ip": [
{ {
"id": "00000000-0000-0000-0000-000000000000", "id": "00000000-0000-0000-0000-000000000000",
"ip_address": "192.168.0.1", "ip_address": "192.168.0.1",
"lb_id": "00000000-0000-0000-0000-000000000000", "lb_id": "00000000-0000-0000-0000-000000000000",
"region": "fr-par", "region": "fr-par",
"organization_id": "00000000-0000-0000-0000-000000000000", "organization_id": "00000000-0000-0000-0000-000000000000",
"reverse": "" "reverse": ""
} }
], ],
"name": "lb_ansible_test", "name": "lb_ansible_test",
"organization_id": "00000000-0000-0000-0000-000000000000", "organization_id": "00000000-0000-0000-0000-000000000000",
@ -152,8 +156,7 @@ RETURNS = """
"first_tag", "first_tag",
"second_tag" "second_tag"
] ]
} }
}
""" """
import datetime import datetime