Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roberto DePietri
gwcelery
Commits
32b94836
Commit
32b94836
authored
Nov 28, 2022
by
Roberto DePietri
Browse files
Revert change to gracedb_sdk
parent
47109397
Pipeline
#479277
passed with stages
in 9 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gwcelery/tasks/gracedb.py
View file @
32b94836
...
...
@@ -9,18 +9,9 @@ import gracedb_sdk
from
..
import
app
from
..util
import
PromiseProxy
gracedb_username
=
app
.
conf
.
get
(
'gracedb_username'
)
gracedb_password
=
app
.
conf
.
get
(
'gracedb_password'
)
if
type
(
gracedb_username
)
==
str
:
client
=
PromiseProxy
(
gracedb_sdk
.
Client
,
(
'https://'
+
app
.
conf
.
gracedb_host
+
'/api/'
,),
{
'fail_if_noauth'
:
True
,
'cert_reload'
:
True
,
'username'
:
gracedb_username
,
'password'
:
gracedb_password
})
else
:
client
=
PromiseProxy
(
gracedb_sdk
.
Client
,
(
'https://'
+
app
.
conf
.
gracedb_host
+
'/api/'
,),
{
'fail_if_noauth'
:
True
,
'cert_reload'
:
True
})
client
=
PromiseProxy
(
gracedb_sdk
.
Client
,
(
'https://'
+
app
.
conf
.
gracedb_host
+
'/api/'
,),
{
'fail_if_noauth'
:
True
,
'cert_reload'
:
True
})
log
=
get_task_logger
(
__name__
)
...
...
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