From bf4c321f0cb2384b898e09cecaed2b6494238ba4 Mon Sep 17 00:00:00 2001 From: camille Date: Tue, 27 Jun 2023 16:14:55 +0200 Subject: [PATCH] duplicity - fix wrong condition --- templates/duplicity.cnf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/duplicity.cnf.j2 b/templates/duplicity.cnf.j2 index 355fc2e..6bfa788 100644 --- a/templates/duplicity.cnf.j2 +++ b/templates/duplicity.cnf.j2 @@ -1,9 +1,9 @@ # Ansible generated -{% if duplicity_backend == 's3' -%} +{% if 's3' in duplicity_backend -%} export PASSPHRASE="{{ duplicity_s3_passphrase }}" export AWS_ACCESS_KEY_ID={{ duplicity_s3_access_key }} export AWS_SECRET_ACCESS_KEY={{ duplicity_s3_secret_key }} -{% elif duplicity_backend == 'azure' %} +{% elif 'azure' in duplicity_backend %} export AZURE_ACCOUNT_NAME={{ duplicity_azure_account_name }} export AZURE_ACCOUNT_KEY={{ duplicity_azure_account_key }} {% endif %}