Puppetclass search_by_host query looks for distinct puppetclasses instead of pruning them afterwards