def options_present(name, sections=None, separator='='):
    ret = {'name': name,
           'changes': {},
           'result': True,
           'comment': 'No anomaly detected'
           }
    if __opts__['test']:
        ret['result'] = True
        ret['comment'] = ''
        for section in sections or {}:
            section_name = ' in section ' + section if section != 'DEFAULT_IMPLICIT' else ''
            cur_section = __salt__['ini.get_section'](name, section, separator)
            for key in sections[section]:
                cur_value = cur_section.get(key)
                if cur_value == str(sections[section][key]):
                    ret['comment'] += 'Key {0}{1} unchanged.\n'.format(key, section_name)
                    continue
                ret['comment'] += 'Changed key {0}{1}.\n'.format(key, section_name)
                ret['result'] = None
        if ret['comment'] == '':
            ret['comment'] = 'No changes detected.'
        return ret
    changes = __salt__['ini.set_option'](name, sections, separator)
    if 'error' in changes:
        ret['result'] = False
        ret['comment'] = 'Errors encountered. {0}'.format(changes['error'])
        ret['changes'] = {}
    else:
        ret['comment'] = 'Changes take effect'
        ret['changes'] = changes
    return ret
Process `form_ajax_refs` and generate model loaders that
dataset/ETHPy150Open saltstack/salt/salt/states/ini_manage.py/options_present--crossover with--dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/model/base.py/BaseModelView._process_ajax_references