瀏覽代碼

Issue #605: Updated when condition for checking buildah images

Signed-off-by: blesson-james <blesson_james@Dellteam.com>
blesson-james 3 年之前
父節點
當前提交
98ecb037f9
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      control_plane/roles/control_plane_ib/tasks/check_prerequisites.yml

+ 3 - 3
control_plane/roles/control_plane_ib/tasks/check_prerequisites.yml

@@ -40,7 +40,7 @@
       verbosity: 2
 
 - name: Inspect the infiniband_container image
-  command: "buildah images {{ infiniband_image_name }}"
+  command: "buildah images"
   register: infiniband_container_image_result
   failed_when: false
   changed_when: false
@@ -56,11 +56,11 @@
 - name: Update infiniband_container image status
   set_fact:
     infiniband_container_image_status: true
-  when: "'No such image' not in infiniband_container_image_result.stderr"
+  when: infiniband_image_name in infiniband_container_image_result.stdout
   tags: install
 
 - name: Update infiniband_container container status
   set_fact:
     infiniband_container_status: true
   when: "'infiniband-container' in infiniband_container_result.stdout"
-  tags: install
+  tags: install