Skip to content

Commit af7adff

Browse files
author
Vasileios Karakasis
authored
Merge pull request #2216 from rsarm/hostname-fqdn
[feat] Use fully qualified domain names when retrieving hostnames
2 parents 3abb6db + 6641d23 commit af7adff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reframe/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _detect_system(self):
269269
with open('/etc/xthostname') as fp:
270270
hostname = fp.read()
271271
else:
272-
hostname = socket.gethostname()
272+
hostname = socket.getfqdn()
273273

274274
getlogger().debug(
275275
f'Looking for a matching configuration entry '

reframe/frontend/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def print_infoline(param, value):
742742
'cmdline': ' '.join(sys.argv),
743743
'config_file': rt.site_config.filename,
744744
'data_version': runreport.DATA_VERSION,
745-
'hostname': socket.gethostname(),
745+
'hostname': socket.getfqdn(),
746746
'prefix_output': rt.output_prefix,
747747
'prefix_stage': rt.stage_prefix,
748748
'user': osext.osuser(),

0 commit comments

Comments
 (0)