handle hostgroups in foreman module for v2 starting from 1.4