Skip to content

Commit

Permalink
Fix bug in which 'cloud_config_used' is undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cole <rycole@redhat.com>
  • Loading branch information
14rcole committed Feb 19, 2020
1 parent 620ba63 commit de4e48d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@

- name: "check cloud_config is used or not"
set_fact:
cloud_config_used: false
when: cloud_config['users'] == [] and cloud_config['run_commands'] == []
cloud_config_used: "{{ true if (cloud_config['users'] }} == [] and cloud_config['run_commands'] == []) else false }}"

- name: "set empty local_image_path"
set_fact:
Expand Down

0 comments on commit de4e48d

Please sign in to comment.