]> git-server-git.apps.pok.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 11:01:11 +0000 (11:01 +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 9302cfe12ceb253be824a6078a8a773e3c6bffbe..0fec0923ae98197a796d772bb67f5bce3abbd500 100644 (file)
@@ -4,4 +4,4 @@
     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 ''}}"
index e99d1e7ebe403660315ec9b173b5018185755ecf..0faaa2f7298ff46cfbc107b730ed54317445e1ad 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 fbe76c8d8ce73b80a22cb6f36e2f65e666c6fa5c..5ba0027bc3ce232441aebc0913bffacacce51bbe 100644 (file)
@@ -10,7 +10,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 ''}}"
   when:
     - ansible_os_family == 'Debian'