mirror of https://github.com/ceph/ceph-ansible.git
shrink-osd: fix regression because of a wrong regex
4.2z3 v4.0.62.7968891f449
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 commit84118a3063
) (cherry picked from commitc5e4851a3f
)
parent
bf8b35cc6e
commit
889be93f36
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue