From 9cf2f6ad5011a2dcabb3bcb4ae5bed34c79f8973 Mon Sep 17 00:00:00 2001 From: Usman Iqbal Date: Mon, 4 Sep 2023 19:10:38 +0100 Subject: [PATCH] bugfix: Need to wrap Azure SAS tokens in quotes --- templates/restic_access_Linux.j2 | 2 +- templates/restic_script_Linux.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/restic_access_Linux.j2 b/templates/restic_access_Linux.j2 index 6ac0875..c3655af 100644 --- a/templates/restic_access_Linux.j2 +++ b/templates/restic_access_Linux.j2 @@ -21,7 +21,7 @@ export AZURE_ACCOUNT_NAME={{ restic_repos[item.repo].azure_account_name }} export AZURE_ACCOUNT_KEY={{ restic_repos[item.repo].azure_account_key }} {% endif %} {% if restic_repos[item.repo].azure_account_sas is defined %} -export AZURE_ACCOUNT_SAS={{ restic_repos[item.repo].azure_account_sas }} +export AZURE_ACCOUNT_SAS='{{ restic_repos[item.repo].azure_account_sas }}' {% endif %} {% if restic_repos[item.repo].azure_endpoint_suffix is defined %} export AZURE_ENDPOINT_SUFFIX={{ restic_repos[item.repo].azure_endpoint_suffix }} diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index 03d351e..aa910a9 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -64,7 +64,7 @@ export AZURE_ACCOUNT_NAME={{ restic_repos[item.repo].azure_account_name }} export AZURE_ACCOUNT_KEY={{ restic_repos[item.repo].azure_account_key }} {% endif %} {% if restic_repos[item.repo].azure_account_sas is defined %} -export AZURE_ACCOUNT_SAS={{ restic_repos[item.repo].azure_account_sas }} +export AZURE_ACCOUNT_SAS='{{ restic_repos[item.repo].azure_account_sas }}' {% endif %} {% if restic_repos[item.repo].azure_endpoint_suffix is defined %} export AZURE_ENDPOINT_SUFFIX={{ restic_repos[item.repo].azure_endpoint_suffix }}