B&R: Fix registry backup generated when it should not

Incorrect ansible variable evaluation results in the a backup file
generated when it is required not do so.

Fix the evaluation.

Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Depends-On: I4644784ea4164134f163d218e69dc4ceb148985a
Closes-Bug: 1916246
Change-Id: I2a31dcda55137a668b2e82b9a938535bdf623656
This commit is contained in:
Dan Voiculeasa 2021-02-19 16:45:22 +02:00
parent 28c8a1f2af
commit 3babc1eed3

View File

@ -359,7 +359,7 @@
vars:
export_file_path: "{{ docker_local_registry_backup_file_path }}"
kilo_free_size: "{{ remaining_disk_size_estimation }}"
when: backup_user_local_registry is defined and backup_user_local_registry
when: backup_user_local_registry is defined and backup_user_local_registry|bool == true
# Archive module has a known bug that doesn't handle empty symbolic links
# well. Restore to tar command. Can add -P option to keep the leading