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

Fix compose down --timeout/-t flag #8788

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Conversation

debdutdeb
Copy link
Contributor

Signed-off-by: Debdut Chakraborty [email protected]

What I did

Moved the PreRun stuff to PreRunE since only one hook is called. ${hook}E is preferred and thus previously cmd.Flags().Changed("timeout") never got a chance to run.
spf13/cobra#253

Related issue
Closes #8784

A picture of a cute animal

image

Signed-off-by: Debdut Chakraborty <[email protected]>
Signed-off-by: Debdut Chakraborty <[email protected]>
@debdutdeb
Copy link
Contributor Author

PS: my backtick key isn't working.

@darkguy2008
Copy link

darkguy2008 commented Oct 19, 2021

Hey Docker guys, Is there any way we can get this to production ASAP please? This PR seems to be working, all checks passing, it just requires review...

LGTM, even though I'm not a Docker dev :P

Copy link
Member

@mat007 mat007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mat007 mat007 merged commit 555b0ab into docker:v2 Oct 19, 2021
@darkguy2008
Copy link

Wow that was super quick and appreciated, thanks @mat007 !

@debdutdeb debdutdeb deleted the 8784-timeout-param branch October 19, 2021 06:05
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.

Timeout parameter -t not working
3 participants