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
changes/68/771868/1
Alex Schultz 2 years ago
parent 444915a44b
commit 197ea933c4
  1. 2
      tripleo_ansible/playbooks/cli-container-image-prepare.yaml

@ -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:

Loading…
Cancel
Save