Skip to content

Commit

Permalink
fixed issue with merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fortunka committed Feb 17, 2025
1 parent 1a3a20c commit 7817520
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions api_app/api/dependencies/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,6 @@ async def _connect_to_db(cls) -> CosmosClient:
logger.debug("Connection established")
return cosmos_client

@classmethod
async def _get_store_key(cls, credential) -> str:
logger.debug("Getting store key")
if STATE_STORE_KEY:
primary_master_key = STATE_STORE_KEY
else:
async with CosmosDBManagementClient(
credential,
subscription_id=SUBSCRIPTION_ID,
base_url=RESOURCE_MANAGER_ENDPOINT,
credential_scopes=CREDENTIAL_SCOPES
) as cosmosdb_mng_client:
database_keys = await cosmosdb_mng_client.database_accounts.list_keys(
resource_group_name=RESOURCE_GROUP_NAME,
account_name=COSMOSDB_ACCOUNT_NAME
)
primary_master_key = database_keys.primary_master_key

return primary_master_key

@classmethod
async def get_container_proxy(cls, container_name) -> ContainerProxy:
if cls._cosmos_client is None:
Expand Down

0 comments on commit 7817520

Please sign in to comment.