Skip to content
Snippets Groups Projects
Commit 52e2f66e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti.backend: Improve compression check

Reviewed-by: iustinp
parent 358a8811
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment