diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-20 06:55:52 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-20 06:55:52 +0000 |
commit | 4411b2df35e7ed0c0b90cd26e84cde969483e95f (patch) | |
tree | d1cc20525cc4e021ddda33dbdb217f26ca27b0b8 /kpov_judge/tasks/radius_mysql_pam | |
parent | 609bbbbfc37c6e5f2c7beb49a8f6854d4597c3d3 (diff) |
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
Diffstat (limited to 'kpov_judge/tasks/radius_mysql_pam')
-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)
|