]> git.donarmstrong.com Git - dsa-puppet.git/commit
Avoid KeyError when uid > max_uid_logged_in
authorTollef Fog Heen <tfheen@err.no>
Sun, 11 May 2014 17:10:01 +0000 (19:10 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 11 May 2014 17:10:01 +0000 (19:10 +0200)
commit5dcca55f481da5b65e989a2d5712325bd32fe736
treeedb47eda409301defd5d317fec639d404d1af423
parent4d66e9a53796fcbfd8a006bab04176650eab236b
Avoid KeyError when uid > max_uid_logged_in

We were getting KeyError for a given user who hasn't logged in a long
time and whose uid is bigger than the max uid in lastlog.  Avoid this
by falling back to a value of 0 if the user is missing from lastlog.
modules/porterbox/files/mail-big-homedirs