clustershell
clustershell copied to clipboard
nodeset resolution error with numeric group source
Reported during testing of 1.7.82
yaml file:
111:
foo: 'bar'
$ nodeset -f @111:foo
nodeset: Unknown group source: "111"
$ nodeset -L | grep 111
@111:foo
$ nodeset -LL | grep 111
nodeset: Unknown group source: "111"
A workaround is to quote the dict key, like "111":. We will need a fix though as the behavior is not consistent in my example above, and this can be confusing for the users, so I guess we should either throw an error ~or convert 111 into a string~.
Why not convert it to a string? It's probably safe to assume that all group names and nodesets are strings anyway/