def parse_kv_as_dict(filters, convert_boolean=False):
    result = {}
    if filters:
        for x in filters:
            k, v = x.split('=', 2)
            if convert_boolean:
                if v.lower() == 'true':
                    v = True
                elif v.lower() == 'false':
                    v = False
            result[k] = v
    return result
.. versionadded:: 2016.3.0
dataset/ETHPy150Open j-bennet/wharfee/wharfee/helpers.py/parse_kv_as_dict--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py/set_catalog