'Idempotent function to ensure that the host
group exists in your LogicMonitor account'

def add(self):

    self.module.debug('Running    Hostgroup.add')
    if (self.info is None):
        self.module.debug("Group    doesn't    exist.    Creating.")
        self.module.debug('System    changed')
        self.change = True
        if self.check_mode:
            self.exit(changed=True)
        self.create_group(self.fullpath)
        self.info = self.get_group(self.fullpath)
        self.module.debug('Group    created')
        return self.info
    else:
        self.module.debug('Group    already    exists')
