Skip to content

Commit

Permalink
Merge PR#26 from rhmk
Browse files Browse the repository at this point in the history
  • Loading branch information
pcahyna committed Aug 13, 2019
2 parents 57258a0 + b20e0ec commit 74bbd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/volume-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
when: volume._preexist

- set_fact:
volume: "{{ volume|combine({'_orig_mount_point': ansible_facts.mounts|selectattr('device', 'eq', volume._device)|map(attribute='mount')|list|first|default('')}, recursive=True) }}"
volume: "{{ volume|combine({'_orig_mount_point': ansible_facts.mounts|selectattr('device', 'equalto', volume._device)|map(attribute='mount')|list|first|default('')}, recursive=True) }}"

- set_fact:
volume: "{{ volume|combine({'_wipe': volume._preexist and (not volume.fs_type or (volume._orig_fs_type and volume.fs_type != volume._orig_fs_type))}) }}"
Expand Down

0 comments on commit 74bbd8b

Please sign in to comment.