summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/smb_nfs
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/smb_nfs')
-rw-r--r--kpov_judge/tasks/smb_nfs/task.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/kpov_judge/tasks/smb_nfs/task.py b/kpov_judge/tasks/smb_nfs/task.py
index 0efd406..b434c42 100644
--- a/kpov_judge/tasks/smb_nfs/task.py
+++ b/kpov_judge/tasks/smb_nfs/task.py
@@ -95,6 +95,18 @@ def gen_params(user_id, params_meta):
return params
def task_check(results, params):
+
+ score = 0
+ names = []
+ for key in results.keys():
+ names.append(key)
+
+ for i in range(len(names)):
+ if results[names[i]] is params[names[i]]:
+ score = score + 1
+
+ return score
+ """
import re
score = -9
if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1:
@@ -107,6 +119,7 @@ def task_check(results, params):
score += 2
score = 0
return score
+ """
def prepare_disks(templates, params):
# d = templates['simpleArbiterDhcp']