def munki_version_ok(item):
    'Returns a boolean to indicate if the current Munki version is high\n        enough to install this item. If not, also adds the failure reason to\n        the rejected_items list.'
    if item.get('minimum_munki_version'):
        min_munki_vers = item['minimum_munki_version']
        display.display_debug1('Considering item %s, version %s with minimum Munki version required %s', item['name'], item['version'], min_munki_vers)
        display.display_debug1('Our Munki version is %s', machine['munki_version'])
        if (pkgutils.MunkiLooseVersion(machine['munki_version']) < pkgutils.MunkiLooseVersion(min_munki_vers)):
            reason = ('Rejected item %s, version %s with minimum Munki version required %s. Our Munki version is %s.' % (item['name'], item['version'], item['minimum_munki_version'], machine['munki_version']))
            rejected_items.append(reason)
            return False
    return True
Returns a boolean to indicate if the current Munki version is high
enough to install this item. If not, also adds the failure reason to
the rejected_items list.
def munki_version_ok(item):
    'Returns a boolean to indicate if the current Munki version is high\n        enough to install this item. If not, also adds the failure reason to\n        the rejected_items list.'
    if item.get('minimum_munki_version'):
        min_munki_vers = item['minimum_munki_version']
        display.display_debug1('Considering item %s, version %s with minimum Munki version required %s', item['name'], item['version'], min_munki_vers)
        display.display_debug1('Our Munki version is %s', machine['munki_version'])
        if (pkgutils.MunkiLooseVersion(machine['munki_version']) < pkgutils.MunkiLooseVersion(min_munki_vers)):
            reason = ('Rejected item %s, version %s with minimum Munki version required %s. Our Munki version is %s.' % (item['name'], item['version'], item['minimum_munki_version'], machine['munki_version']))
            rejected_items.append(reason)
            return False
    return True