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
OpenDAS
nni
Commits
7c4bc33b
Commit
7c4bc33b
authored
Jul 16, 2019
by
demianzhang
Committed by
chicm-ms
Jul 16, 2019
Browse files
fix nnictl trial kill (#1259)
parent
87b0f640
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/nni_cmd/url_utils.py
tools/nni_cmd/url_utils.py
+2
-2
No files found.
tools/nni_cmd/url_utils.py
View file @
7c4bc33b
...
...
@@ -67,7 +67,7 @@ def trial_jobs_url(port):
def
trial_job_id_url
(
port
,
job_id
):
'''get trial_jobs with id url'''
return
'{0}:{1}{2}{3}/
:
{4}'
.
format
(
BASE_URL
,
port
,
API_ROOT_URL
,
TRIAL_JOBS_API
,
job_id
)
return
'{0}:{1}{2}{3}/{4}'
.
format
(
BASE_URL
,
port
,
API_ROOT_URL
,
TRIAL_JOBS_API
,
job_id
)
def
export_data_url
(
port
):
...
...
@@ -87,4 +87,4 @@ def get_local_urls(port):
for
addr
in
info
:
if
AddressFamily
.
AF_INET
==
addr
.
family
:
url_list
.
append
(
'http://{}:{}'
.
format
(
addr
.
address
,
port
))
return
url_list
\ No newline at end of file
return
url_list
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