Skip to content

Commit

Permalink
Merge pull request #497 from vmsh0/container-start-command
Browse files Browse the repository at this point in the history
fix: accept a string for the `command` argument of Container.start
  • Loading branch information
openshift-merge-bot[bot] authored Jan 15, 2025
2 parents c792857 + 10d9c0a commit 8cab9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions podman/domain/containers_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ def create(
"""
if isinstance(image, Image):
image = image.id
if isinstance(command, str):
command = [command]

payload = {"image": image, "command": command}
payload.update(kwargs)
Expand Down

0 comments on commit 8cab9d8

Please sign in to comment.