From 564a8486b0123b675a26c0725cfb0e99842213be Mon Sep 17 00:00:00 2001 From: Musee Ullah Date: Wed, 5 Oct 2016 14:36:41 -0700 Subject: [PATCH] Remove dupes in raw_journal_devices in a consistent manner --- roles/ceph-osd/tasks/check_devices.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-osd/tasks/check_devices.yml b/roles/ceph-osd/tasks/check_devices.yml index 07ccdd6ce..541aa7436 100644 --- a/roles/ceph-osd/tasks/check_devices.yml +++ b/roles/ceph-osd/tasks/check_devices.yml @@ -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