summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/task.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py
index 6105c4b..0d876ac 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/task.py
+++ b/kpov_judge/tasks/snmp_agent_uptime/task.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+ #!/usr/bin/env python
# -*- coding: utf-8 -*-
# kpov_random_helpers should be imported by add_assignment.py
@@ -125,7 +125,7 @@ def gen_params(user_id, params_meta):
def task_check(results, params):
#cakam na predhodnike in pomagam tistim ki kaj ne vejo
import re
- score = -9
+ score = 0
if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1:
score += 3
if results['static_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_static'])) > -1:
@@ -134,10 +134,13 @@ def task_check(results, params):
score += 2
if not re.search(r'eth0 +802-.*connected', results['static_nmcli']):
score += 2
- score = 0
return score
def prepare_disks(templates, params):
# d = templates['simpleArbiterDhcp']
pass
+
+
+
+