Skip to content

Commit

Permalink
PMM-12641 fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Oct 15, 2024
1 parent 6c8f698 commit 7b77053
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/ansible/roles/initialization/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

- name: Detect AMI distribution
set_fact:
is_ami: "{{ lookup('file', '/srv/pmm-distribution', errors='ignore') | trim == 'ami' }}"
pmm_distribution: "{{ lookup('file', '/srv/pmm-distribution', errors='ignore') | default('none', true) }}"

- name: Set is_ami fact
set_fact:
is_ami: "{{ pmm_distribution | trim == 'ami' }}"

- name: Get current PMM version (aka 'update from')
set_fact:
Expand Down

0 comments on commit 7b77053

Please sign in to comment.