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

Fixes #8307

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexei Znamensky
2026-04-16 05:30:29 +12:00
committed by GitHub
parent df252e5fab
commit 7dcd3c1c45

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)