]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Fix conditional
authorDavid Galloway <dgallowa@redhat.com>
Tue, 23 Aug 2022 14:04:40 +0000 (10:04 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 23 Aug 2022 14:04:40 +0000 (10:04 -0400)
Not always defined

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler_profile/tasks/import_distro_iso.yml

index 845f0f9819626b1579376471bbd489f60a508405..2e1d6ac4c4bd3d0e0568ffdae4be32e8aa2ff7f3 100644 (file)
@@ -28,7 +28,7 @@
     opts: "loop"
     fstype: "iso9660"
     state: mounted
-  when: download is changed or (iso_stat.stat.exists and
+  when: download is changed or (iso_stat.stat is defined and iso_stat.stat.exists and
         profile is defined and profile.stdout == '')
   register: mount