Procházet zdrojové kódy

Issue #563: Updated fetch_base_inputs.yml

Signed-off-by: abhishek-s-a <a_sa@dellteam.com>
abhishek-s-a před 3 roky
rodič
revize
24ee33d2eb

+ 5 - 3
control_plane/roles/control_plane_common/tasks/fetch_base_inputs.yml

@@ -37,7 +37,7 @@
       host_network_dhcp_end_range | length < 1 or
       provision_method | length < 1 or
       default_lease_time | length < 1
-      
+
 - name: Validate default lease time
   assert:
     that:
@@ -205,12 +205,14 @@
 - name : Assert iso_file_path
   fail:
     msg: "{{ invalid_iso_file_path }}"
-  when: ( not result_path_iso_file.stat.exists ) and ( ".iso" not in  iso_file_path )
+  when: not result_path_iso_file.stat.exists
 
 - name: Fail when iso path valid but image not right
   fail:
     msg: "{{ invalid_iso_file_path }}"
-  when: ( result_path_iso_file.stat.exists ) and ( ".iso" not in iso_file_path )
+  when:
+    - result_path_iso_file.stat.exists
+    - '".iso" not in iso_file_path'
 
 #### management_net_dhcp_start_end_range
 - name: Assert management network nic