Skip to content

Commit

Permalink
Merge pull request #204 from dirkmueller/no_entrypoint_crash
Browse files Browse the repository at this point in the history
Avoid split() on None
  • Loading branch information
dcermak authored Apr 9, 2024
2 parents bf9ab21 + e611aef commit c7f1623
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytest_container/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ def inspect_container(self, container_id: str) -> ContainerInspect:
tty=Conf["Tty"],
cmd=Conf["Cmd"],
image=Conf["Image"],
entrypoint=Conf["Entrypoint"].split(),
entrypoint=Conf["Entrypoint"].split()
if Conf["Entrypoint"]
else None,
labels=Conf["Labels"],
env=dict([env.split("=", maxsplit=1) for env in Conf["Env"]]),
stop_signal=self._stop_signal_from_inspect_conf(Conf),
Expand Down

0 comments on commit c7f1623

Please sign in to comment.