Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
pymemri
Commits
79c8a020
Commit
79c8a020
authored
2 years ago
by
Szymon Zimnowoda
Browse files
Options
Download
Email Patches
Plain Diff
added ugly sanity checks
parent
afecd174
sz/create_account_when_keys_are_present
1 merge request
!275
change
Pipeline
#12219
failed with stage
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pymemri/pod/client.py
+13
-2
pymemri/pod/client.py
with
13 additions
and
2 deletions
+13
-2
pymemri/pod/client.py
+
13
-
2
View file @
79c8a020
...
...
@@ -39,9 +39,20 @@ class PodClient:
default_priority
=
Priority
.
local
,
create_account
=
True
,
):
if
auth_json
is
not
None
and
owner_key
is
not
None
:
raise
ValueError
(
"Cannot create a pod client containing both auth_json, and owner keys"
)
self
.
verbose
=
verbose
self
.
database_key
=
database_key
if
database_key
is
not
None
else
self
.
generate_random_key
()
self
.
owner_key
=
owner_key
if
owner_key
is
not
None
else
self
.
generate_random_key
()
if
auth_json
is
None
:
logger
.
debug
(
"Using keys for authentication"
)
self
.
database_key
=
(
database_key
if
database_key
is
not
None
else
self
.
generate_random_key
()
)
self
.
owner_key
=
owner_key
if
owner_key
is
not
None
else
self
.
generate_random_key
()
else
:
logger
.
debug
(
"Using auth_json for authentication"
)
self
.
api
=
PodAPI
(
database_key
=
self
.
database_key
,
owner_key
=
self
.
owner_key
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets