Commit 3edd0576 authored by Adrian Reber's avatar Adrian Reber Committed by Pavel Emelyanov

zdtm: fix decode_flav()

decode_flav() was doing 'if i in flavors:' where 'i' was an integer but
the keys from the flavors dict are strings 'h', 'ns' and 'uns'.
Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6e4d0585
......@@ -291,10 +291,10 @@ def encode_flav(f):
def decode_flav(i):
i = i - 128
if i in flavors:
try:
return flavors.keys()[i - 128]
return "unknown"
except:
return "unknown"
def tail(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