Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
1876a59d
Unverified
Commit
1876a59d
authored
Jan 01, 2025
by
Antoine Kaufmann
Browse files
symphony/client: remove some debug prints
parent
24c9aa30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
symphony/client/simbricks/client/auth.py
symphony/client/simbricks/client/auth.py
+0
-1
symphony/client/simbricks/client/client.py
symphony/client/simbricks/client/client.py
+0
-1
No files found.
symphony/client/simbricks/client/auth.py
View file @
1876a59d
...
@@ -178,7 +178,6 @@ class TokenClient:
...
@@ -178,7 +178,6 @@ class TokenClient:
"ticket"
:
ticket
,
"ticket"
:
ticket
,
},
},
)
as
resp
:
)
as
resp
:
print
(
await
resp
.
text
())
resp
.
raise_for_status
()
# TODO: handel gracefully
resp
.
raise_for_status
()
# TODO: handel gracefully
json_resp
=
await
resp
.
json
()
json_resp
=
await
resp
.
json
()
if
"error"
in
json_resp
:
if
"error"
in
json_resp
:
...
...
symphony/client/simbricks/client/client.py
View file @
1876a59d
...
@@ -435,7 +435,6 @@ class RunnerClient:
...
@@ -435,7 +435,6 @@ class RunnerClient:
async
def
create_runner
(
self
,
label
:
str
,
tags
:
list
[
str
])
->
dict
:
async
def
create_runner
(
self
,
label
:
str
,
tags
:
list
[
str
])
->
dict
:
obj
=
{
"label"
:
label
,
"tags"
:
list
(
map
(
lambda
t
:
{
"label"
:
t
,
"runner_id"
:
None
},
tags
))}
obj
=
{
"label"
:
label
,
"tags"
:
list
(
map
(
lambda
t
:
{
"label"
:
t
,
"runner_id"
:
None
},
tags
))}
print
(
obj
)
async
with
self
.
_ns_client
.
post
(
url
=
f
"/runners"
,
json
=
obj
)
as
resp
:
async
with
self
.
_ns_client
.
post
(
url
=
f
"/runners"
,
json
=
obj
)
as
resp
:
return
await
resp
.
json
()
return
await
resp
.
json
()
...
...
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