summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/set_motd/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/set_motd/task.py')
-rw-r--r--kpov_judge/tasks/set_motd/task.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/kpov_judge/tasks/set_motd/task.py b/kpov_judge/tasks/set_motd/task.py
index 99d9ec5..b60830c 100644
--- a/kpov_judge/tasks/set_motd/task.py
+++ b/kpov_judge/tasks/set_motd/task.py
@@ -1,5 +1,3 @@
-
-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
@@ -23,8 +21,8 @@ Uporabniško ime in niz dobite kot parametre ob zagonu run_test.py. Pri nizu paz
IP navideznega računalnika ter geslo nastavite sami.
Ocenjevalni program pričakuje, da se bo ob koncu prijave pojavila ukazna vrstica oblike uporabnisko_ime@ime_racunalnika:~$ . Pazite, da se bo takšna vrstica pojavila šele po nizu, ki ste ga dobili v navodilih.
-
-
+ """,
+ 'en':u"""
Create two virtual machines - named Test and Student. For the 'Test' use disc image named Test. You receive short string on machine 'Test'. Make sure that this string appears in the message which is displayed after you login to machine 'Student'. This is so called 'message of the day'MOTD.
Make sure that when the user logins via ssh some string is displayed. Set the machine, so that you can reach it from test computer (Test)
@@ -66,7 +64,7 @@ params_meta = {
'peer_ip': {'descriptions': {'si': u'IP računalnika'}, 'w': True, 'public':True, 'type': 'IP', 'generated': False},
'peer_user': {'descriptions': {'si': 'ime uporabnika'}, 'w': False, 'public': True, 'type': 'username', 'generated': True},
'peer_passwd': {'descriptions': {'si': 'geslo uporabnika'}, 'w': True, 'public': True, 'type': 'alnumstr', 'generated': False},
- 'niz': {'w': False, 'public': True, 'type': 'short_text', 'generated': True},
+ 'niz': {'descriptions':{'si': u'niz, ki naj se v motd pokaže'}, 'w': False, 'public': True, 'type': 'short_text', 'generated': True},
}
def task(peer_ip, peer_user, peer_passwd, niz):