Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
execo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
IMBERT Matthieu
execo
Commits
55eefb9b
Commit
55eefb9b
authored
1 year ago
by
IMBERT Matthieu
Browse files
Options
Downloads
Patches
Plain Diff
[execo_g5k] get_host_longname: correct behaviour when site unknown
parent
f0103a29
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/execo_g5k/api_utils.py
+2
-0
2 additions, 0 deletions
src/execo_g5k/api_utils.py
with
2 additions
and
0 deletions
src/execo_g5k/api_utils.py
+
2
−
0
View file @
55eefb9b
...
@@ -653,6 +653,8 @@ def get_host_longname(host):
...
@@ -653,6 +653,8 @@ def get_host_longname(host):
host_site
=
mo
.
group
(
3
)
host_site
=
mo
.
group
(
3
)
else
:
else
:
host_site
=
get_host_site
(
host_shortname
)
host_site
=
get_host_site
(
host_shortname
)
if
not
host_site
:
return
None
return
host_shortname
+
"
.
"
+
host_site
+
"
.grid5000.fr
"
return
host_shortname
+
"
.
"
+
host_site
+
"
.grid5000.fr
"
def
__get_site_metrics
(
site
,
grouped_hosts
,
metric
,
from_ts
,
to_ts
,
resolution
):
def
__get_site_metrics
(
site
,
grouped_hosts
,
metric
,
from_ts
,
to_ts
,
resolution
):
...
...
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