Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
remi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RobotLearn
RemI (Remote Inria)
remi
Commits
f6be62b0
Commit
f6be62b0
authored
1 year ago
by
Gaétan Lepage
Browse files
Options
Downloads
Patches
Plain Diff
hostname: automatically extend gpuX in gpuX-perception
parent
b0150d28
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
remi/cli_utils.py
+6
-2
6 additions, 2 deletions
remi/cli_utils.py
with
6 additions
and
2 deletions
remi/cli_utils.py
+
6
−
2
View file @
f6be62b0
...
@@ -4,6 +4,7 @@ Common options for remi commands
...
@@ -4,6 +4,7 @@ Common options for remi commands
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
click
import
click
import
re
from
.config
import
Config
from
.config
import
Config
...
@@ -15,10 +16,13 @@ def _callback_option_hostname(ctx, param, value) -> str:
...
@@ -15,10 +16,13 @@ def _callback_option_hostname(ctx, param, value) -> str:
config
:
Config
=
Config
()
config
:
Config
=
Config
()
# If no hostname was provided, use the one from the config file.
# If no hostname was provided, use the one from the config file.
if
value
==
""
:
if
value
==
""
:
value
=
config
.
desktop
.
ip_adress
return
config
.
desktop
.
ip_adress
if
re
.
match
(
r
"
gpu[0-9]$
"
,
value
):
value
+=
"
-perception
"
# Make sure the provided hostname is a valid Inria hostname
# Make sure the provided hostname is a valid Inria hostname
el
if
not
value
.
endswith
(
"
.inrialpes.fr
"
):
if
not
value
.
endswith
(
"
.inrialpes.fr
"
):
value
+=
"
.inrialpes.fr
"
value
+=
"
.inrialpes.fr
"
return
value
return
value
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment