Fixes #5723 - Show hostgroups inherited via config groups in puppetclass

I'd prefer what you suggest over displaying the whole hierarchy of host groups too. That can get cumbersome really quickly. @tbrisker sorry not to mention this before but could you do it that way?