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

As per the comments before, it's probably worth leaving this as is and adding config groups to the table, 5723 was written when config groups didn't exist.