Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
fd339a68
Commit
fd339a68
authored
Aug 16, 2022
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aad creds used
parent
d71aa912
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cosmos_client.py
utils/cosmos_client.py
+4
-4
No files found.
utils/cosmos_client.py
View file @
fd339a68
...
@@ -53,10 +53,10 @@ class CosmosClient:
...
@@ -53,10 +53,10 @@ class CosmosClient:
""" Cosmos Client class """
""" Cosmos Client class """
def
__init__
(
self
,
host
:
str
,
master_key
:
str
):
def
__init__
(
self
,
host
:
str
,
master_key
:
str
):
self
.
executor
=
futures
.
ThreadPoolExecutor
()
self
.
executor
=
futures
.
ThreadPoolExecutor
()
#
aad_credentials = DefaultAzureCredential()
aad_credentials
=
DefaultAzureCredential
()
#
self.client = cosmos_client.CosmosClient(host, aad_credentials)
self
.
client
=
cosmos_client
.
CosmosClient
(
host
,
aad_credentials
)
self
.
client
=
cosmos_client
.
CosmosClient
(
host
,
#
self.client = cosmos_client.CosmosClient(host,
dict
(
masterKey
=
master_key
))
#
dict(masterKey=master_key))
async
def
execute_blocking
(
self
,
bl
,
*
args
):
async
def
execute_blocking
(
self
,
bl
,
*
args
):
""" Execute blocking code """
""" Execute blocking code """
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment