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
b183c3d8
Unverified
Commit
b183c3d8
authored
Oct 18, 2018
by
SparkSnail
Committed by
GitHub
Oct 18, 2018
Browse files
Quick fix bug: nnictl port value error (#245)
* fix port bug
parent
b190a8bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/nnicmd/nnictl_utils.py
tools/nnicmd/nnictl_utils.py
+1
-1
No files found.
tools/nnicmd/nnictl_utils.py
View file @
b183c3d8
...
@@ -54,7 +54,7 @@ def get_experiment_port(args):
...
@@ -54,7 +54,7 @@ def get_experiment_port(args):
if
not
args
.
id
:
if
not
args
.
id
:
return
list
(
experiment_dict
.
values
())[
0
][
0
]
return
list
(
experiment_dict
.
values
())[
0
][
0
]
if
experiment_dict
.
get
(
args
.
id
):
if
experiment_dict
.
get
(
args
.
id
):
return
experiment_dict
[
args
.
id
]
return
experiment_dict
[
args
.
id
]
[
0
]
else
:
else
:
print_error
(
'Id not correct!'
)
print_error
(
'Id not correct!'
)
return
None
return
None
...
...
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