]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
shrink-osd: fix regression because of a wrong regex
authorPer Abildgaard Toft <per@minfejl.dk>
Wed, 20 Oct 2021 07:45:16 +0000 (09:45 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 26 Oct 2021 14:39:33 +0000 (16:39 +0200)
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 <per@minfejl.dk>
(cherry picked from commit 84118a3063e38ed9d274cca90d115809353819b4)

infrastructure-playbooks/shrink-osd.yml

index 1526d769b6228a22fa38d4651e45d685e223c7a5..a53e3d84d7547cdb1558045902168fc55c8ac717 100644 (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: