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 b4aa596 commit d671119
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,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 d671119

Please sign in to comment.