Skip to content

Hostlist

Warning

This API is currently being completely reworked, and is subject to be removed in the future when a replacement is introduced

pyslurm.hostlist

Wrapper for Slurm hostlist functions.

get_list() method descriptor

Get the list of hostnames composing the hostlist.

For example with a hostlist created with "tux[1-3]" -> [ 'tux1', tux2', 'tux3' ].

Returns:

Type Description
list

The list of hostnames in case of success or None on error.