cea-hpc/clustershell — Issue #13: NodeSet is not handling whitespace consistently
Author: thiell
Created: 2012-03-03 16:44:47+00:00
State: open
Labels: ClusterShell

NodeSet.NodeSet() has some inconsistencies in the output when there are whitespace before and/or after the names, for example :
{{{
NodeSet.NodeSet(" tigrou2 , tigrou7 , tigrou[9-11] ").__str__()
}}}
returns
{{{
' tigrou[9-11] , tigrou[2,7]'
}}}
and not (a space before and one after)
{{{
' tigrou[2,7,9-11] '
}}}
BTW, maybe whitespace doesn't have a lot of meaning in a node name and should be ignored during the parsing, the output would be :
{{{
'tigrou[2,7,9-11]'
}}}