Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/config_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,14 @@ System Partition Configuration
:required: No
:default: :obj:`False`

Use unqualified hostnames in the ``local`` scheduler backend.
Use unqualified hostnames in the ``local`` and ``ssh`` scheduler backends.

.. versionadded:: 4.7

.. versionchanged:: 4.10.1

Added support for the ``ssh`` scheduler backend.


.. py:attribute:: systems.partitions.sched_options.use_nodes_option

Expand Down
4 changes: 4 additions & 0 deletions reframe/core/schedulers/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def submit(self, job):
job._submit_time = time.time()
job._ssh_options = stripped_opts
job._host = self._reserve_host(host)
if self.get_option('unqualified_hostnames'):
job._nodelist = [job._host.split('.')[0]]
else:
job._nodelist = [job._host]

self._push_artefacts(job)
self._do_submit(job)
Expand Down
Loading