diff options
-rw-r--r-- | kpov_judge/tasks/radius_mysql_pam/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py index bdac883..cd0fb46 100644 --- a/kpov_judge/tasks/radius_mysql_pam/task.py +++ b/kpov_judge/tasks/radius_mysql_pam/task.py @@ -98,7 +98,7 @@ def task(IP_RS, RADIUS_SECRET, RADIUS_USERNAME, RADIUS_PASSWORD, MYSQL_ADMIN_USE def gen_params(user_id, params_meta):
params = dict()
r = random.Random(user_id)
- for name, meta in param_meta.iteritems():
+ for name, meta in params_meta.iteritems():
params[name] = default_generators[meta.get('type', None)](r)
params['RADIUS_SECRET'] = alnum_gen(r, 8)
params['RADIUS_PASSWORD'] = alnum_gen(r, 4)
|