Skip to content

Commit

Permalink
shrink-osd: fix regression because of a wrong regex
Browse files Browse the repository at this point in the history
968891f 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 84118a3)
(cherry picked from commit c5e4851)
  • Loading branch information
pertoft authored and guits committed Nov 10, 2021
1 parent bf8b35c commit 889be93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure-playbooks/shrink-osd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 889be93

Please sign in to comment.