In general, if we don't have an explicit profile, just return.
Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
return 11
elif affiliation == 'staff':
return 15
+ elif affiliation == 'proxy':
+ return None
+ return None
def get_home_ou(self):
"""
if not user:
return
+ if user.profile is None:
+ print >> sys.stderr, "No profile set for %s" % user.usrname
+ return
+
found = find_evergreen_user(auth, user)
if found:
print("Found: %s" % user.usrname)