def _normalize_server_settings(**settings):
    ret = dict()
    settings = salt.utils.clean_kwargs(**settings)

    for setting in settings:
        if isinstance(settings[setting], dict):
            _LOG.debug('Fixing value: %s', settings[setting])
            value_from_key = next(six.iterkeys(settings[setting]))

            ret[setting] = "{{{0}}}".format(value_from_key)
        else:
            ret[setting] = settings[setting]
    return ret
Raise exception.AdminRequired() if context is an admin context.
dataset/ETHPy150Open saltstack/salt/salt/modules/win_smtp_server.py/_normalize_server_settings--crossover with--dataset/ETHPy150Open openstack/rack/rack/context.py/require_admin_context