From 7eab2529ed79ca4d7283f522f294a955e39f77da Mon Sep 17 00:00:00 2001 From: chenyanshan Date: Mon, 5 Dec 2016 13:40:38 +0800 Subject: [PATCH] this patch fix the regex pattern in infrastructure-playbooks/shrink-osd.yml when the osd's pid num is bigger than 9999 Signed-off-by: chenyanshan --- 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 59842e7b4..e71e53178 100644 --- a/infrastructure-playbooks/shrink-osd.yml +++ b/infrastructure-playbooks/shrink-osd.yml @@ -100,7 +100,7 @@ - set_fact: ips="{{ ip_result.results | map(attribute='ansible_facts.ip_item') | list }}" - - set_fact: real_ips="{{ ips | regex_replace(':[0-9][0-9][0-9][0-9]\/[0-9][0-9][0-9][0-9]', '') }}" + - set_fact: real_ips="{{ ips | regex_replace(':[0-9][0-9][0-9][0-9]\/[0-9]+', '') }}" - name: check if ceph admin key exists on the osd nodes stat: