Commit f55265f0 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm: handle unknown flavors

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent fa8b12a1
......@@ -245,7 +245,10 @@ def encode_flav(f):
return (flavors.keys().index(f) + 128)
def decode_flav(i):
return flavors.keys()[i - 128]
i = i - 128
if flavors.has_key(i):
return flavors.keys()[i - 128]
return "unknown"
def tail(path):
p = subprocess.Popen(['tail', '-n1', path],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment