Commit 52e2f66e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti.backend: Improve compression check

Reviewed-by: iustinp
parent 358a8811
......@@ -78,6 +78,7 @@ def _Decompress(data):
@return: Decompressed data
"""
assert isinstance(data, (list, tuple))
assert len(data) == 2
(encoding, content) = data
if encoding == constants.RPC_ENCODING_NONE:
......
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