Skip to content

Conversation

@austinvazquez
Copy link
Contributor

@austinvazquez austinvazquez commented Oct 7, 2024

- 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
Copy link

codecov-commenter commented Oct 7, 2024

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 <[email protected]>
(cherry picked from commit daea277)
Signed-off-by: Austin Vazquez <[email protected]>
@austinvazquez austinvazquez force-pushed the cherry-pick-daea277ee839742be94e1f41d5c477f114a81273-to-26.1 branch from 27721fe to 23a8d38 Compare October 8, 2024 04:53
@austinvazquez austinvazquez marked this pull request as ready for review October 8, 2024 04:56
@thaJeztah thaJeztah added this to the 26.1.5 milestone Oct 8, 2024
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 fb622db into docker:26.1 Oct 8, 2024
@austinvazquez austinvazquez deleted the cherry-pick-daea277ee839742be94e1f41d5c477f114a81273-to-26.1 branch October 8, 2024 12:11
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.

4 participants