diff --git a/podman/domain/images_manager.py b/podman/domain/images_manager.py index d3343e09..13b2eed1 100644 --- a/podman/domain/images_manager.py +++ b/podman/domain/images_manager.py @@ -411,11 +411,10 @@ def scp( Raises: APIError: when service returns an error """ - params = {} - if dest is not None and quiet: - params = {"destination": dest, "quiet": quiet} - elif quiet: - params = {"quiet": quiet} + params = {"quiet": quiet} + if dest is not None: + params["destination"] = dest + response = self.client.post(f"/images/scp/{source}", params=params) response.raise_for_status() return response.json()