From 6641d237650959abf6afccd34161e98d21e796cf Mon Sep 17 00:00:00 2001 From: Rafael Sarmiento Date: Fri, 8 Oct 2021 10:29:42 +0200 Subject: [PATCH] replace gethostname by getfqdn --- reframe/core/config.py | 2 +- reframe/frontend/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reframe/core/config.py b/reframe/core/config.py index 8442e9859c..f558d56682 100644 --- a/reframe/core/config.py +++ b/reframe/core/config.py @@ -269,7 +269,7 @@ def _detect_system(self): with open('/etc/xthostname') as fp: hostname = fp.read() else: - hostname = socket.gethostname() + hostname = socket.getfqdn() getlogger().debug( f'Looking for a matching configuration entry ' diff --git a/reframe/frontend/cli.py b/reframe/frontend/cli.py index 3072f1e7c4..4ea291c630 100644 --- a/reframe/frontend/cli.py +++ b/reframe/frontend/cli.py @@ -742,7 +742,7 @@ def print_infoline(param, value): 'cmdline': ' '.join(sys.argv), 'config_file': rt.site_config.filename, 'data_version': runreport.DATA_VERSION, - 'hostname': socket.gethostname(), + 'hostname': socket.getfqdn(), 'prefix_output': rt.output_prefix, 'prefix_stage': rt.stage_prefix, 'user': osext.osuser(),