This is technical debt that's in the way of other things, notably a sensible REST API and a sane internal query structure. Variously we operate with list of host name patterns and a Hosts structure, which wraps a set of patterns and a globber for those patterns. The variation causes translation back and forth in several cases and makes internal interfaces difficult. The sensible thing is to translate to a Hosts structure early. However, sometimes we need to iterate over hosts in the pattern list with the assumption that those are single node names, and there are other complications. So it is sort of messy.
This is technical debt that's in the way of other things, notably a sensible REST API and a sane internal query structure. Variously we operate with list of host name patterns and a Hosts structure, which wraps a set of patterns and a globber for those patterns. The variation causes translation back and forth in several cases and makes internal interfaces difficult. The sensible thing is to translate to a Hosts structure early. However, sometimes we need to iterate over hosts in the pattern list with the assumption that those are single node names, and there are other complications. So it is sort of messy.