diff options
-rw-r--r-- | morphlib/builder2.py | 3 |
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() |