]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
this patch fix the regex pattern in infrastructure-playbooks/shrink-osd.yml when... 1144/head
authorchenyanshan <yanshanchen@139.com>
Mon, 5 Dec 2016 05:40:38 +0000 (13:40 +0800)
committerchenyanshan <yanshanchen@139.com>
Mon, 5 Dec 2016 05:40:38 +0000 (13:40 +0800)
Signed-off-by: chenyanshan <yanshanchen@139.com>
infrastructure-playbooks/shrink-osd.yml

index 59842e7b457529ade62fa3f69e5fb68e6314da03..e71e5317835c92a666be8975fc93373969a3ac4b 100644 (file)
 
   - 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: