From: Per Abildgaard Toft Date: Wed, 20 Oct 2021 07:45:16 +0000 (+0200) Subject: shrink-osd: fix regression because of a wrong regex X-Git-Tag: v6.0.18~5 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3edc6ac5f2e8e619c6c05eb20c732c3848a73d45;p=ceph-ansible.git shrink-osd: fix regression because of a wrong regex 968891f4498da9625acfdd34bfb01fe445d1eef2 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 (cherry picked from commit 84118a3063e38ed9d274cca90d115809353819b4) --- diff --git a/infrastructure-playbooks/shrink-osd.yml b/infrastructure-playbooks/shrink-osd.yml index 75ad7a4a2..42d96dddd 100644 --- a/infrastructure-playbooks/shrink-osd.yml +++ b/infrastructure-playbooks/shrink-osd.yml @@ -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: