From d694c592780d40add7f0437108e7a6f013e1715f Mon Sep 17 00:00:00 2001 From: Marcus Pamelia Date: Sun, 29 May 2016 09:20:46 +0200 Subject: [PATCH] allow dash in cluster name --- roles/ceph-osd/tasks/activate_osds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index 5011f856b..34dde8f5e 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -69,7 +69,7 @@ - is_before_infernalis - name: get osd id (for or after infernalis) - shell: "ls /var/lib/ceph/osd/ | grep '-' | cut -d '-' -f 2" + shell: 'ls /var/lib/ceph/osd/ | grep -oP "\d+$"' changed_when: false failed_when: false register: osd_id