summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 67ff7ba3..135e4608 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -478,10 +478,11 @@ def decomp_gzip(data, quiet=True, decode=True):
try:
buf = six.BytesIO(encode_text(data))
with contextlib.closing(gzip.GzipFile(None, "rb", 1, buf)) as gh:
+ # E1101 is https://github.com/PyCQA/pylint/issues/1444
if decode:
- return decode_binary(gh.read())
+ return decode_binary(gh.read()) # pylint: disable=E1101
else:
- return gh.read()
+ return gh.read() # pylint: disable=E1101
except Exception as e:
if quiet:
return data