'Checks for an igroup for a set of one or more initiators.
Creates igroup if not already present with given host os type,
igroup type and adds initiators.'

def _get_or_create_igroup(self, initiator_list, initiator_group_type, host_os_type):

    igroups = self.zapi_client.get_igroup_by_initiators(initiator_list)
    igroup_name = None
    if igroups:
        igroup = igroups[0]
        igroup_name = igroup['initiator-group-name']
        host_os_type = igroup['initiator-group-os-type']
        initiator_group_type = igroup['initiator-group-type']
    if (not igroup_name):
        igroup_name = self._create_igroup_add_initiators(initiator_group_type, host_os_type, initiator_list)
    return (igroup_name, host_os_type, initiator_group_type)
