summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/network_boot_custom_program
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/network_boot_custom_program')
-rw-r--r--kpov_judge/tasks/network_boot_custom_program/task.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kpov_judge/tasks/network_boot_custom_program/task.py b/kpov_judge/tasks/network_boot_custom_program/task.py
index 843b15a..89e3194 100644
--- a/kpov_judge/tasks/network_boot_custom_program/task.py
+++ b/kpov_judge/tasks/network_boot_custom_program/task.py
@@ -104,6 +104,7 @@ def gen_params(user_id, params_meta):
def task_check(results, params):
import re
score = -9
+ hints = []
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:
@@ -113,7 +114,7 @@ def task_check(results, params):
if not re.search(r'eth0 +802-.*connected', results['static_nmcli']):
score += 2
score = 0
- return score
+ return score, hints
def prepare_disks(templates, params):
# d = templates['simpleArbiterDhcp']