Skip to content

Commit

Permalink
Add account_name to credentials secret
Browse files Browse the repository at this point in the history
  • Loading branch information
swoehrl-mw committed Mar 25, 2024
1 parent 8cc0a07 commit 64ff302
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hybridcloud/backends/azureblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def create_or_update_bucket(self, namespace, name, spec):
"endpoint": f"https://{bucket_name}.blob.core.windows.net",
"key": key.value,
"connection_string": f"DefaultEndpointsProtocol=https;AccountName={bucket_name};AccountKey={key.value};EndpointSuffix=core.windows.net",
"account_name": bucket_name,
}
raise Exception("Could not find keys in azure")

Expand Down Expand Up @@ -319,6 +320,7 @@ def reset_credentials(self, namespace, name):
"endpoint": f"https://{bucket_name}.blob.core.windows.net",
"key": key.value,
"connection_string": f"DefaultEndpointsProtocol=https;AccountName={bucket_name};AccountKey={key.value};EndpointSuffix=core.windows.net",
"account_name": bucket_name,
}
raise Exception("Could not find keys in azure")

Expand Down

0 comments on commit 64ff302

Please sign in to comment.