From 52e2f66ef0ed40cf0f6ab4274c7cfc0e4998fc82 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Wed, 10 Dec 2008 12:11:47 +0000
Subject: [PATCH] ganeti.backend: Improve compression check

Reviewed-by: iustinp
---
 lib/backend.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/backend.py b/lib/backend.py
index e2aac3bb2..7a9e0d841 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -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:
-- 
GitLab