-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
volume/update: require 1 argument/fix panic #5420
Conversation
This command was declaring that it requires at least 1 argument, when it needs exactly 1 argument. This was causing the CLI to panic when the command was invoked with no argument: `docker volume update` Signed-off-by: Laura Brehm <[email protected]>
a07fd44
to
daea277
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5420 +/- ##
==========================================
+ Coverage 59.73% 59.78% +0.04%
==========================================
Files 345 345
Lines 23394 23394
==========================================
+ Hits 13974 13985 +11
+ Misses 8450 8438 -12
- Partials 970 971 +1 |
Oof a test as well! That's thorough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes: #5418
- What I did
This command was declaring that it requires at least 1 argument, when it needs exactly 1 argument. This was causing the CLI to panic when the command was invoked with no argument.
- How I did it
Require exactly 1 argument.
- How to verify it
docker volume update
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)