zephyr_mirror: Fix name of MIT Zephyr realm.

(imported from commit 2c4d269fee673171fcbacbd865135d266489559d)
This commit is contained in:
Tim Abbott 2012-11-05 13:10:41 -05:00
parent 07c190d94b
commit ee953c03fb

View file

@ -82,7 +82,7 @@ def to_humbug_username(zephyr_username):
if "@" in zephyr_username: if "@" in zephyr_username:
(user, realm) = zephyr_username.split("@") (user, realm) = zephyr_username.split("@")
else: else:
(user, realm) = (zephyr_username, "mit.edu") (user, realm) = (zephyr_username, "ATHENA.MIT.EDU")
if realm.upper() == "ATHENA.MIT.EDU": if realm.upper() == "ATHENA.MIT.EDU":
return user.lower() + "@mit.edu" return user.lower() + "@mit.edu"
return user.lower() + "|" + realm.upper() + "@mit.edu" return user.lower() + "|" + realm.upper() + "@mit.edu"