]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Osd: Fix bug 'uniq' command not found
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 Jul 2017 15:46:31 +0000 (17:46 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Jul 2017 13:02:39 +0000 (15:02 +0200)
Due to a breaking space introduced by d2320e412e the command here is
broken.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-osd/templates/ceph-osd-run.sh.j2

index 50c06e7f1f6d569b32c9f92d373c9bfa6a782f93..193bbefde63165bd5d322c74064b28796fc1b42e 100644 (file)
@@ -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