diff options
author | Michael Gugino <mgugino@redhat.com> | 2018-01-08 14:12:52 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2018-01-08 14:12:52 -0500 |
commit | 7819056aa716356416f421b3916954c040f2824f (patch) | |
tree | 99913b7d170157a6b4e5407adcd76a2f9679f170 /roles/container_runtime | |
parent | fe2dbc1d9524b707288bc639e7e2bf71290dbe0b (diff) | |
download | openshift-7819056aa716356416f421b3916954c040f2824f.tar.gz openshift-7819056aa716356416f421b3916954c040f2824f.tar.bz2 openshift-7819056aa716356416f421b3916954c040f2824f.tar.xz openshift-7819056aa716356416f421b3916954c040f2824f.zip |
Properly cast crio boolean variables to bool
Variables that are specifically booleans should be
cast to bool. This is because users may sometimes
pass them as string values. This is particularly
prevalent when using ini-style inventories.
Affected-by: https://github.com/ansible/ansible/issues/34591
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1531592
Diffstat (limited to 'roles/container_runtime')
-rw-r--r-- | roles/container_runtime/tasks/common/post.yml | 2 | ||||
-rw-r--r-- | roles/container_runtime/tasks/systemcontainer_crio.yml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/container_runtime/tasks/common/post.yml b/roles/container_runtime/tasks/common/post.yml index b90190ebf..23fd8528a 100644 --- a/roles/container_runtime/tasks/common/post.yml +++ b/roles/container_runtime/tasks/common/post.yml @@ -22,5 +22,5 @@ - include_tasks: setup_docker_symlink.yml when: - - openshift_use_crio + - openshift_use_crio | bool - dockerstat.stat.islnk is defined and not (dockerstat.stat.islnk | bool) diff --git a/roles/container_runtime/tasks/systemcontainer_crio.yml b/roles/container_runtime/tasks/systemcontainer_crio.yml index eedb18604..d588f2618 100644 --- a/roles/container_runtime/tasks/systemcontainer_crio.yml +++ b/roles/container_runtime/tasks/systemcontainer_crio.yml @@ -104,4 +104,4 @@ # 'docker login' - include_tasks: common/post.yml vars: - openshift_docker_alternative_creds: "{{ openshift_use_crio_only }}" + openshift_docker_alternative_creds: "{{ openshift_use_crio_only | bool }}" |