From 4411b2df35e7ed0c0b90cd26e84cde969483e95f Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Tue, 20 Jan 2015 06:55:52 +0000 Subject: fixed typo in gen_params for radius_mysql_pam git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@216 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/radius_mysql_pam/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kpov_judge/tasks') 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) -- cgit v1.2.1