Skip to content

Commit

Permalink
Merge pull request #321 from hpvb/fix-image-scp
Browse files Browse the repository at this point in the history
Fix image SCP when not providing quiet
  • Loading branch information
openshift-merge-robot authored Sep 5, 2023
2 parents 0d577b9 + 14f5b46 commit 004ebda
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions podman/domain/images_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 004ebda

Please sign in to comment.