CLI input is a list of key/val pairs, but the API expects a dictionary in
    the format {key: val}

def translate_key_val(val, delimiter='='):
    '''
    CLI input is a list of key/val pairs, but the API expects a dictionary in
    the format {key: val}
    '''
    if isinstance(val, dict):
        return val
    val = translate_stringlist(val)
    new_val = {}
    for item in val:
        try:
            lvalue, rvalue = split(item, delimiter, 1)
        except (AttributeError, TypeError, ValueError):
            raise SaltInvocationError(
                '\'{0}\' is not a key{1}value pair'.format(item, delimiter)
            )
        new_val[lvalue] = rvalue
    return new_val