def set_maxdays(name, days):
    minutes = days * 24 * 60

    _set_account_policy(
        name, 'maxMinutesUntilChangePassword={0}'.format(minutes))

    return get_maxdays(name) == days
Calculates initial status for an item and also sets a boolean
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_shadow.py/set_maxdays--crossover with--dataset/ETHPy150Open munki/munki/code/apps/Managed Software Center/Managed Software Center/MunkiItems.py/OptionalItem._get_status