Files
cozystack/api
Aleksei Sviridkin bbac0a7b24 fix(gpu): refuse an explicit zero GPU count in gpus entries
A count of 0 was read as "unset" and silently became 1, so a tenant
who wrote 0 got a GPU they did not ask for; a negative count already
failed to render. Only a missing or null count now selects the default
of 1. Any other value must be a whole number of at least 1, and a
raw-name entry accepts no count at all.

count has not been in any release yet, so no stored object depends on
the old 0 to 1 behaviour. A release carrying count 0 recovers once the
count is removed or set to at least 1.

The count descriptions now state the accepted range.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-28 09:25:44 +03:00
..