Skip to content

Commit f8c799c

Browse files
Merge pull request containers#538 from dklimpel/fix_push_stream
fix: push image does not stream
2 parents 97f1f0a + d082296 commit f8c799c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

podman/domain/images_manager.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,14 @@ def push(
273273
"format": kwargs.get("format"),
274274
}
275275

276+
stream = kwargs.get("stream", False)
277+
decode = kwargs.get("decode", False)
278+
276279
name = f'{repository}:{tag}' if tag else repository
277280
name = urllib.parse.quote_plus(name)
278-
response = self.client.post(f"/images/{name}/push", params=params, headers=headers)
281+
response = self.client.post(
282+
f"/images/{name}/push", params=params, stream=stream, headers=headers
283+
)
279284
response.raise_for_status(not_found=ImageNotFound)
280285

281286
tag_count = 0 if tag is None else 1
@@ -290,8 +295,6 @@ def push(
290295
},
291296
]
292297

293-
stream = kwargs.get("stream", False)
294-
decode = kwargs.get("decode", False)
295298
if stream:
296299
return self._push_helper(decode, body)
297300

0 commit comments

Comments
 (0)