clustershell icon indicating copy to clipboard operation
clustershell copied to clipboard

nodeset resolution error with numeric group source

Open thiell opened this issue 8 years ago • 2 comments

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"

thiell avatar Oct 09 '17 04:10 thiell

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~.

thiell avatar Oct 09 '17 15:10 thiell

Why not convert it to a string? It's probably safe to assume that all group names and nodesets are strings anyway/

kcgthb avatar Jan 30 '18 16:01 kcgthb