]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Remove dupes in raw_journal_devices in a consistent manner 1007/head
authorMusee Ullah <musee.ullah@fireeye.com>
Wed, 5 Oct 2016 21:36:41 +0000 (14:36 -0700)
committerMusee Ullah <musee.ullah@fireeye.com>
Wed, 5 Oct 2016 21:36:41 +0000 (14:36 -0700)
roles/ceph-osd/tasks/check_devices.yml

index 07ccdd6ce64a48f903323c6d6f6e5c82c7259c4e..541aa7436646c51f1ac3335cfa2a5235d5ace767 100644 (file)
@@ -32,7 +32,7 @@
   shell: "sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }} || sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }}"
   with_together:
     - "{{ journal_partition_status.results }}"
-    - "{{ raw_journal_devices }}"
+    - "{{ raw_journal_devices|default([])|unique }}"
   changed_when: false
   when:
     - raw_multi_journal