Skip to content

Commit c81081b

Browse files
committed
remote/exporter: hostname option is ignored
Following the addition of the fqdn option, the hostname is ignored. Hostname is set with gethostname() regardless of args.hostname value because the condition is incorrect. Fix this and get the hostname option working again. Cc: Andreas Naumann <anaumann@ultratronik.de> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
1 parent 3de5952 commit c81081b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

labgrid/remote/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def main():
949949

950950
extra = {
951951
'name': args.name or gethostname(),
952-
'hostname': args.hostname or getfqdn() if args.fqdn else gethostname(),
952+
'hostname': args.hostname or (getfqdn() if args.fqdn else gethostname()),
953953
'resources': args.resources,
954954
'isolated': args.isolated
955955
}

0 commit comments

Comments
 (0)