Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias generate systemd options stop_timeout and time #685

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

fuljo
Copy link
Contributor

@fuljo fuljo commented Dec 3, 2023

Closes #683

The spec of the podman generate systemd command has changed between v3 and v4.
Option time was used before Podman v4 (manpage), then it has been renamed stop-timeout (manpage).
Problems with this change have also been reported in #675.

The proposed change is to accept both names (the newer takes prirority) and set the correct CLI argument name based on the detected Podman version.
In this way, the user doesn't have to implement a different behavior based on the detected Podman version.

The change involves modules podman_container and podman_pod.

Closes containers#683

Option `time` was used before Podman v4, then it was renamed
`stop_timeout`.
Accept both names (the newer takes prirority) and set the correct
CLI argument name based on the detected Podman version.

Signed-off-by: Alessandro Fulgini <[email protected]>
@sshnaidm
Copy link
Member

sshnaidm commented Dec 7, 2023

Thanks for fixing this!

@sshnaidm sshnaidm merged commit 4d233a4 into containers:master Dec 7, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alias parameters "stop_timeout" and "time" for podman generate systemd
2 participants