If a user chooses a partition name with non-hostname characters, we do not escape these properly when creating the node. Therefore, when trying to create a hostname that matches the node name, we fail due to having invalid characters.
Easiest solution - escape non-hostname characters for the slurm.partition config field with '-' like we do with cluster names.