Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 55eefb9b authored by IMBERT Matthieu's avatar IMBERT Matthieu
Browse files

[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
...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment