From fa66335ede07d1f0cd1d39d2f04f81b693ce8b62 Mon Sep 17 00:00:00 2001 From: Matt Erickson Date: Fri, 23 Aug 2013 16:36:02 -0500 Subject: [PATCH] Fixed nonemail username issue that got squished in the merge. --- netkes/account_mgr/account_runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netkes/account_mgr/account_runner.py b/netkes/account_mgr/account_runner.py index f129531..58ef909 100644 --- a/netkes/account_mgr/account_runner.py +++ b/netkes/account_mgr/account_runner.py @@ -74,6 +74,9 @@ def find_group(group_id): group_id=user['group_id'], plan_id=find_group(user['group_id'])['plan_id'], ) + if 'username' in user: + tmp_user['username'] = user['username'] + try: self._api.create_user(tmp_user) result = self._api.get_user(user['email'])