summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/set_ip_static_dhcp
diff options
context:
space:
mode:
authorgasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-30 20:50:59 +0000
committergasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-30 20:50:59 +0000
commit0e87104d21bdf9273780196f94b66dc55a86e100 (patch)
treee55080593c378a85ee5638591f0b8bbdb9df59f2 /kpov_judge/tasks/set_ip_static_dhcp
parentc0a84e259ef720e7ca6cd93730611b195ebb7553 (diff)
commit test
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@255 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/set_ip_static_dhcp')
-rw-r--r--kpov_judge/tasks/set_ip_static_dhcp/task.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kpov_judge/tasks/set_ip_static_dhcp/task.py b/kpov_judge/tasks/set_ip_static_dhcp/task.py
index 8c33a90..48f7e69 100644
--- a/kpov_judge/tasks/set_ip_static_dhcp/task.py
+++ b/kpov_judge/tasks/set_ip_static_dhcp/task.py
@@ -114,16 +114,16 @@ def task_check(results, params):
#print results, params
if results['NM_nslookup'].find(params['DNS_NM']) > -1:
# print "NM_nslookup OK"
- score += 3
+ score += 2
if results['static_nslookup'].find(params['DNS_static']) > -1:
# print "static_nslookup OK"
- score += 3
+ score += 2
if re.search(r'eth0 +802-.*connected', results['NM_nmcli']):
# print "NM_nmcli OK"
- score += 2
+ score += 3
if re.search(r'eth0 +802-.*unmanaged', results['static_nmcli']):
# print "static_nmcli OK"
- score += 2
+ score += 3
return score
def prepare_disks(templates, params):