Skip to content

[26.1 backport] volume/update: require 1 argument/fix panic - #5510

Merged
thaJeztah merged 1 commit into
docker:26.1from
austinvazquez:cherry-pick-daea277ee839742be94e1f41d5c477f114a81273-to-26.1
Oct 8, 2024
Merged

[26.1 backport] volume/update: require 1 argument/fix panic#5510
thaJeztah merged 1 commit into
docker:26.1from
austinvazquez:cherry-pick-daea277ee839742be94e1f41d5c477f114a81273-to-26.1

Conversation

@austinvazquez

@austinvazquezaustinvazquez commented Oct 7, 2024

Copy link
Copy Markdown
Contributor

- 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:

docker volume update

(cherry picked from commit daea277)

- How I did it

git cherry-pick -xsS daea277ee839742be94e1f41d5c477f114a81273

Similar to #5426, this change updates the test as Docker 26.1 CLI does not have the UX improvements which have been added to master.

- How to verify it

docker volume update

- Description for the changelog

Fix issue where `docker volume update` command would cause the CLI to panic if no argument/volume was passed.

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

@austinvazquez
austinvazquez marked this pull request as draft October 7, 2024 16:46
@codecov-commenter

codecov-commenter commented Oct 7, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.03%. Comparing base (3c827ab) to head (23a8d38).
Report is 2 commits behind head on 26.1.

Additional details and impacted files
@@ Coverage Diff @@## 26.1 #5510 +/- ##
==========================================
+ Coverage 59.99% 60.03% +0.03% 
==========================================
Files 338 338 Lines 22730 22730 ==========================================
+ Hits 13637 13646 +9 + Misses 8155 8144 -11 - Partials 938 940 +2 

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 <laurabrehm@hey.com>
(cherry picked from commit daea277)
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
@austinvazquez
austinvazquezforce-pushed the cherry-pick-daea277ee839742be94e1f41d5c477f114a81273-to-26.1 branch from 27721fe to 23a8d38CompareOctober 8, 2024 04:53
@austinvazquez
austinvazquez marked this pull request as ready for review October 8, 2024 04:56
@thaJeztahthaJeztah added this to the 26.1.5 milestone Oct 8, 2024

@thaJeztahthaJeztah left a comment

Copy link
Copy Markdown
Member

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 fb622db into docker:26.1Oct 8, 2024
@austinvazquez
austinvazquez deleted the cherry-pick-daea277ee839742be94e1f41d5c477f114a81273-to-26.1 branch October 8, 2024 12:11
Sign up for freeto 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.

4 participants

@austinvazquez@codecov-commenter@thaJeztah@laurazard