LLNL / py-hostlist

hostlist utility implemented in python
MIT License
6 stars 2 forks source link

nth() needs to be able to read in simple list #6

Closed cmoussa1 closed 6 years ago

cmoussa1 commented 6 years ago

right now, nth() can only read in hostlists with the following format: node[1-4]. it also needs to be able to read in the following format: node1,node2,node3,node4.

cmoussa1 commented 6 years ago

This issue has been fixed and confirmed with unit tests. nth() can now read in all of the following inputs:

'node[1-4]'
'node1,node2,node3,node4'
['node1','node2','node3','node4']