'Gets all volume mappings for given host group from array.'

def get_volume_mappings_for_host_group(self, hg_ref):

    mappings = (self.get_volume_mappings() or [])
    return [x for x in mappings if (x.get('mapRef') == hg_ref)]
