]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: fix activate for osd on partitions 637/head
authorSébastien Han <seb@redhat.com>
Mon, 21 Mar 2016 15:00:58 +0000 (16:00 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 21 Mar 2016 15:00:58 +0000 (16:00 +0100)
Since we want to activate the OSD when it's a partition we are looking
for a return code that is equal to 0 which means the device is a
  partition.

closes: #636

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-osd/tasks/activate_osds.yml

index b9b7c1f02114a4686e13d3c9ef90f1c062d78636..0ee388b5cf4008a0a9a8d510006d725c0b8dff88 100644 (file)
@@ -35,7 +35,7 @@
   failed_when: false
   when:
     not item.0.get("skipped") and
-    item.0.get("rc", 0) != 0 and
+    item.0.get("rc", 0) == 0 and
     not osd_auto_discovery
 
 - include: osd_fragment.yml