Przeglądaj źródła

Fix unsafe bool usage.

Devan Goodwin 8 lat temu
rodzic
commit
0071ab46bf
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      roles/openshift_version/tasks/main.yml

+ 1 - 1
roles/openshift_version/tasks/main.yml

@@ -34,7 +34,7 @@
 - name: Use openshift.common.version fact as version to configure if already installed
   set_fact:
     openshift_version: "{{ openshift.common.version }}"
-  when: openshift.common.version is defined and openshift_version is not defined and openshift_protect_installed_version
+  when: openshift.common.version is defined and openshift_version is not defined and openshift_protect_installed_version | bool
 
 - debug: var=is_containerized
 - debug: var=openshift_version