From 889be93f367ca0647bb2eb913f8c173e6cc0e7d3 Mon Sep 17 00:00:00 2001 From: Per Abildgaard Toft Date: Wed, 20 Oct 2021 09:45:16 +0200 Subject: [PATCH] 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) (cherry picked from commit c5e4851a3ff721ff933c05e9911805cfd7132148) --- infrastructure-playbooks/shrink-osd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-playbooks/shrink-osd.yml b/infrastructure-playbooks/shrink-osd.yml index 1526d769b6..a53e3d84d7 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: