diff --git a/labgrid/remote/exporter.py b/labgrid/remote/exporter.py index a30b1afe1..eaff020a5 100755 --- a/labgrid/remote/exporter.py +++ b/labgrid/remote/exporter.py @@ -916,6 +916,13 @@ def main(): default=None, help='hostname (or IP) published for accessing resources (defaults to the system hostname)' ) + parser.add_argument( + '-f', + '--fqdn', + action='store_true', + default=False, + help='Use fully qualified domain name as default for hostname' + ) parser.add_argument( '-d', '--debug', @@ -943,7 +950,7 @@ def main(): extra = { 'name': args.name or gethostname(), - 'hostname': args.hostname or gethostname(), + 'hostname': args.hostname or getfqdn() if args.fqdn else gethostname(), 'resources': args.resources, 'isolated': args.isolated }