shrink-osd: fix regression because of a wrong regex

968891f449 introduced a regression.
The regex is wrong because it doesn't allow to shrink osds with id
greater than 9

Fixes: #6950

Signed-off-by: Per Abildgaard Toft <per@minfejl.dk>
(cherry picked from commit 84118a3063)
pull/6959/head
Per Abildgaard Toft 2021-10-20 09:45:16 +02:00 committed by Guillaume Abrioux
parent fde6354dcd
commit 3edc6ac5f2
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@
fail:
msg: "The id {{ item }} has wrong format, please pass the number only"
with_items: "{{ osd_to_kill.split(',') }}"
when: not item is regex("^\d$")
when: not item is regex("^\d+$")
tasks:
- import_role: