]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Remove NBSP characters v3.2.21
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 18 Jul 2019 18:57:46 +0000 (14:57 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 26 Jul 2019 20:23:38 +0000 (16:23 -0400)
Some NBSP are still present in the yaml files.
Adding a test in travis CI.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 07c6695d16bc3e8f6d8d5fdc17bd9830b1d94619)

.travis.yml
roles/ceph-config/templates/ceph.conf.j2

index e862e399dfecb11813a31526a31c810f123b0c2d..0da38d7d8dc4e3e2785eeae4b5db1e5720572325 100644 (file)
@@ -7,5 +7,6 @@ notifications:
 install:
   - pip install -r requirements.txt
 script:
+  - if [[ -n $(grep --exclude-dir=.git -P "\xa0" -r .) ]]; then echo 'NBSP characters found'; exit 1; fi
   - ansible-playbook -i '127.0.0.1,' site.yml.sample --syntax-check --list-tasks -vv
-  - ansible-playbook -i '127.0.0.1,' site-docker.yml.sample --syntax-check --list-tasks -vv
\ No newline at end of file
+  - ansible-playbook -i '127.0.0.1,' site-docker.yml.sample --syntax-check --list-tasks -vv
index 22b56f4508ba134df0dbbbeaf0154df715199405..1984f46b33c6df29520c5feb60ff304c048f95ea 100644 (file)
@@ -148,7 +148,7 @@ filestore xattr use omap = true
 {% endif %}
 {% endif %}
 {% if osd_objectstore == 'bluestore' %}
-{% set _num_osds = num_osds | default(0) | int %}
+{% set _num_osds = num_osds | default(0) | int %}
 [osd]
 {% if is_hci and _num_osds > 0 %}
 {# hci_safety_factor is the safety factor for HCI deployments #}