Revision 654f87c0

b/snf-image-host/helper-monitor.py
33 33
PROTOCOL = {
34 34
    'TASK_START': ('task-start', 'task'),
35 35
    'TASK_END': ('task-end', 'task'),
36
    'WARNING': ('warning', 'msg'),
36
    'WARNING': ('warning', 'messages'),
37 37
    'STDERR': ('error', 'stderr'),
38
    'ERROR': ('error', 'msg')}
38
    'ERROR': ('error', 'messages')}
39 39

  
40 40

  
41 41
def error(msg):
......
139 139
                or line.startswith("WARNING:") \
140 140
                or line.startswith("ERROR:"):
141 141
                (msg_type, _, value) = line.partition(':')
142

  
143
                if line.startswith("WARNING:") or line.startswith("ERROR:"):
144
                    value = [value]
142 145
                send(fd, msg_type, value)
143 146
            else:
144 147
                error("Unknown command!")

Also available in: Unified diff