summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/dhcp_dns_predefined_ip
diff options
context:
space:
mode:
authorgasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2016-10-01 21:46:34 +0000
committergasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2016-10-01 21:46:34 +0000
commitfa8934667ad8eae30c81081bbaa868b227c119ed (patch)
treed2a69178cfb693c0da0ffbefaff2da70a64f52f5 /kpov_judge/tasks/dhcp_dns_predefined_ip
parent7210b74d6241a4264532aaaa2e1d771eaca4e073 (diff)
added a global_params parameter to prepare_disks so that the task_name, username and task_url are pre-entered on the arbiters
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@351 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/dhcp_dns_predefined_ip')
-rw-r--r--kpov_judge/tasks/dhcp_dns_predefined_ip/task.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/kpov_judge/tasks/dhcp_dns_predefined_ip/task.py b/kpov_judge/tasks/dhcp_dns_predefined_ip/task.py
index f6e0ded..4a96993 100644
--- a/kpov_judge/tasks/dhcp_dns_predefined_ip/task.py
+++ b/kpov_judge/tasks/dhcp_dns_predefined_ip/task.py
@@ -66,7 +66,7 @@ params_meta = {
}
def task(IP_NM, DNS_NM, IP_static, DNS_static):
- import pxssh
+ from pexpect import pxssh
import pexpect
results = dict()
peer_user = 'student'
@@ -120,7 +120,6 @@ def task_check(results, params):
hint += ["static wrong"]
return score, hints
-def prepare_disks(templates, params):
-# d = templates['simpleArbiterDhcp']
- pass
+def prepare_disks(templates, task_params, global_params):
+ write_default_config(templates['simpleArbiterDhcp'], global_params)