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 issue #850, Warn user of filter when pruning #1043

Merged
merged 1 commit into from
May 21, 2018
Merged

Fix issue #850, Warn user of filter when pruning #1043

merged 1 commit into from
May 21, 2018

Conversation

justyntemme
Copy link
Contributor

@justyntemme justyntemme commented May 8, 2018

Append a warning with which filter the elements will be pruned with if filter is set.
This is a fix for issue #850

- What I did
Added a message in prune warning if filter is applied.

- How I did it

I have checked the length of the string of the options.prune argument, and appended the warning along with the string value of that arguments supplied.

- How to verify it
docker system prune --filter=label=foo
- Description for the changelog

Added warning to prune command when filter is applied.

- A picture of a cute animal (not mandatory but encouraged)
My icon :)

Append a warning with which filter the elements will be pruned with if filter is set.

Signed-off-by: Justyn Temme <justyntemme@gmail.com>
@justyntemme justyntemme changed the title Update prune.go Fix issue #850, Warn user of filter when pruning May 10, 2018
@thaJeztah
Copy link
Member

ping @vdemeester PTAL

@docker docker deleted a comment from GordonTheTurtle May 14, 2018
Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐯

Copy link
Contributor

@vieux vieux left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 680c579 into docker:master May 21, 2018
@GordonTheTurtle GordonTheTurtle added this to the 18.06.0 milestone May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants