Fix hostname
This commit is contained in:
parent
959f55acf8
commit
71c8595e2a
@ -122,7 +122,8 @@ def run(expe_file):
|
||||
|
||||
def create_report(experience, stime=None, etime=None):
|
||||
expe_report = OrderedDict()
|
||||
expe_report['supervisor'] = os.environ["HOST"]
|
||||
host = os.getenv("HOST")
|
||||
expe_report['supervisor'] = host if host is not None else os.uname()[1]
|
||||
|
||||
# Dates
|
||||
for datek, timev in zip(('start_date', 'end_date'), (stime, etime)):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user