23de9d37cd
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> |
||
---|---|---|
.. | ||
main.yml |