1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-21 11:19:00 +00:00

[PR #11826/7dcd3c1c backport][stable-12] lxd_container: document that config values must be strings (#11829)

lxd_container: document that config values must be strings (#11826)

Fixes #8307


(cherry picked from commit 7dcd3c1c45)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
patchback[bot] 2026-04-15 22:01:36 +02:00 committed by GitHub
parent 308a5d7e06
commit 4d30704615
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,9 @@ options:
config:
description:
- 'The config for the instance (for example V({"limits.cpu": "2"})).'
- All values in O(config) must be strings, as required by the LXD/Incus API.
Using non-string values (such as integers or booleans) will cause an API error.
Make sure to quote numeric and boolean values in YAML (for example, use V("2") instead of V(2)).
- See U(https://documentation.ubuntu.com/lxd/en/latest/api/#/instances/instance_get).
- If the instance already exists and its "config" values in metadata obtained from the LXD API
U(https://documentation.ubuntu.com/lxd/en/latest/api/#/instances/instance_get)