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
3927e692
Unverified
Commit
3927e692
authored
Nov 30, 2024
by
Antoine Kaufmann
Browse files
symphony/cli: rely on settings instead of manually setting params
parent
680b1733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
symphony/cli/simbricks/cli/state.py
symphony/cli/simbricks/cli/state.py
+1
-3
No files found.
symphony/cli/simbricks/cli/state.py
View file @
3927e692
...
...
@@ -26,15 +26,13 @@ from simbricks.client import BaseClient, NSClient, SimBricksClient
class
State
():
def
__init__
(
self
):
self
.
namespace
=
''
self
.
api_base
=
os
.
environ
.
get
(
"SIMBRICKS_BASE_URL"
,
"http://0.0.0.0:8000"
)
self
.
_base_client
:
BaseClient
|
None
=
None
self
.
_ns_client
:
NSClient
|
None
=
None
self
.
_simbricks_client
:
SimBricksClient
|
None
=
None
def
base_client
(
self
):
if
self
.
_base_client
is
None
:
self
.
_base_client
=
BaseClient
(
base_url
=
self
.
api_base
)
self
.
_base_client
=
BaseClient
()
return
self
.
_base_client
def
ns_client
(
self
):
...
...
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