Fix bare variable warning

[DEPRECATION WARNING]: evaluating 'environment_directories' as a bare
variable, this behaviour will go away and you might need to add |bool to
the expression in the future. Also see CONDITIONAL_BARE_VARS
configuration toggle. This feature will be removed in version 2.12.
Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

Change-Id: I16ed9e104d9daaa56ecf691f90dee492c6d06348
This commit is contained in:
Alex Schultz 2021-01-21 10:49:33 -07:00
parent 444915a44b
commit 197ea933c4
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@
find:
paths: "{{ environment_directories | tht_abspath(ignore_error=true) }}"
patterns: '*.yaml'
when: environment_directories
when: environment_directories|list|length > 0
register: out_env_files
- name: Build environment_files
set_fact: