tripleo-validations/roles/mysql-open-files-limit/tasks
Gael Chamoulaud 23de9d37cd Fix Jinja2's default filter usage
The default() filter provided by Jinja2 treats the special class
Undefined differently from False-y Python values. By default, default()
will only return its first argument if the prior expression evaluates to
Undefined. The second boolean parameter asks the function to also accept
Python False-y values as undefined and return the default value.

In our case, when we retrieve the variable "container_cli" from the file
'undercloud.conf' or from the inventory, it may not be present and the
default function does not work since the variable "container_cli" is
Undefined or set to an empty string.

Change-Id: Id44338a3b6ecea16c3a0bf7eb1e7c0b431e69f95
Implements: blueprint validation-framework
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-04-19 09:59:36 +02:00
..
main.yml Fix Jinja2's default filter usage 2019-04-19 09:59:36 +02:00