Conditional login update after aux_data_path set 50/78450/4
authorMichal Ptacek <m.ptacek@partner.samsung.com>
Thu, 14 Feb 2019 07:47:59 +0000 (07:47 +0000)
committerMichal Ptacek <m.ptacek@partner.samsung.com>
Thu, 14 Feb 2019 16:05:51 +0000 (16:05 +0000)
After setting-up of default value for aux_data_path some
of the conditional logic must be updated.

Issue-ID: OOM-1659

Change-Id: I0472c2e848f9215186b8aa11557165f606cac9d4
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
ansible/roles/resource-data/tasks/nfs-upload.yml
ansible/roles/resource-data/tasks/ssh-upload.yml

index 825486b..4b5c18d 100644 (file)
@@ -22,6 +22,7 @@
         dest: "{{ aux_data_path }}"
       when: >
         hostvars[groups.resources.0].aux_resources_filename is defined
+        and hostvars[groups.resources.0].aux_resources_filename is not none
         and aux_data_path is defined and aux_data_path is not none
         and hostvars[groups.resources.0].aux_file_presence.stat.exists
         and not aux_resources_data_check.stat.exists
index 8e04d5c..bc7df37 100644 (file)
@@ -29,6 +29,7 @@
         | tar -C "{{ aux_data_path }}" -xf -
       when: >
         hostvars[groups.resources.0].aux_resources_filename is defined
+        and hostvars[groups.resources.0].aux_resources_filename is not none
         and aux_data_path is defined and aux_data_path is not none
         and hostvars[groups.resources.0].aux_file_presence.stat.exists
         and not aux_resources_data_check.stat.exists