]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix uses of default(omit) with string concatenation
authorLeah Neukirchen <leah.neukirchen@mayflower.de>
Thu, 7 Feb 2019 17:09:21 +0000 (18:09 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 8 Feb 2019 16:18:15 +0000 (16:18 +0000)
When {{omit}} is concatenated with another string, it expands to something
like __omit_place_holder__63eea0d96dd6ed867b95405e11d87dddf61f448d.
However, in these use-cases we need an empty string.

Regression introduced in d53f55e807e.

Signed-off-by: Leah Neukirchen <leah.neukirchen@mayflower.de>
roles/ceph-common/tasks/installs/install_debian_packages.yml
roles/ceph-mds/tasks/non_containerized.yml
roles/ceph-mgr/tasks/pre_requisite.yml

index 1af787006139f312039afdc0f567272d3b2322a3..c6405813f458dd6e53d5c2eed5a6ba3affa667a9 100644 (file)
@@ -4,6 +4,6 @@
     name: "{{ debian_ceph_pkgs | unique }}"
     update_cache: no
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
-    default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
+    default_release: "{{ ceph_stable_release_uca | default('') }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
   register: result
   until: result is succeeded
\ No newline at end of file
index 8eb15d9e7a3313d8e993c9e9b46f7f3841ca65a7..d0c77a338f0661d44313b891dc5b5155171ffa2c 100644 (file)
@@ -3,7 +3,7 @@
   apt:
     name: ceph-mds
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
-    default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
+    default_release: "{{ ceph_stable_release_uca | default('') }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
   when:
     - mds_group_name in group_names
     - ansible_os_family == 'Debian'
index b3a1d587bdad02e5380c01010b469a905ba866f3..d6216b6dd4ed47ca710ae713aaab0d92bd3d101d 100644 (file)
@@ -12,7 +12,7 @@
   apt:
     name: ceph-mgr
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
-    default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
+    default_release: "{{ ceph_stable_release_uca | default('') }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else '' }}"
   register: result
   until: result is succeeded
   when: