From: Guillaume Abrioux Date: Fri, 7 Jul 2017 15:46:31 +0000 (+0200) Subject: Osd: Fix bug 'uniq' command not found X-Git-Tag: v2.3.0rc2~3^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0a38bfaadca49927bfe7b71c49a21210cb7a06ea;p=ceph-ansible.git Osd: Fix bug 'uniq' command not found Due to a breaking space introduced by d2320e412e the command here is broken. Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-osd/templates/ceph-osd-run.sh.j2 b/roles/ceph-osd/templates/ceph-osd-run.sh.j2 index 50c06e7f1..193bbefde 100644 --- a/roles/ceph-osd/templates/ceph-osd-run.sh.j2 +++ b/roles/ceph-osd/templates/ceph-osd-run.sh.j2 @@ -11,7 +11,7 @@ function create_dev_list { local disks regex="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" # we use the prepare container to find the partitions to expose - disks=$(docker logs ceph-osd-prepare-{{ ansible_hostname }}-dev${1} |& grep -Eo /dev/disk/by-partuuid/${regex} | uniq) + disks=$(docker logs ceph-osd-prepare-{{ ansible_hostname }}-devdev${1} |& grep -Eo /dev/disk/by-partuuid/${regex} | uniq) for disk in $disks; do DEVICES="--device $disk " done