summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-11-21 11:06:19 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-11-21 11:06:19 +0000
commit6f09a60fef25eb686bfaf62eed306de51ded5192 (patch)
tree1b72d3e4f82389088b6eb33319972d86e1dffd57
parent54d28eeb9c1d921bae7928090fef9825bfb63a59 (diff)
parentc0141e85a02b2d54b0d97b380b0054e1a9e08870 (diff)
downloadmorph-6f09a60fef25eb686bfaf62eed306de51ded5192.tar.gz
Merge branch 'master' of git://git.baserock.org/baserock/baserock/morph
-rw-r--r--morphlib/builder2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 674cbb17..c7d25e1a 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -730,7 +730,8 @@ class DiskImageBuilder(SystemKindBuilder): # pragma: no cover
chatty=True)
with os.fdopen(image_file_fd, "rb") as ifh:
ofh = gzip.GzipFile(
- fileobj=handle, mode="wb", compresslevel=1)
+ fileobj=handle, filename='', mode="wb",
+ compresslevel=1)
shutil.copyfileobj(ifh, ofh, 1024 * 1024)
ofh.close()