Skip to content

cli/command: ResolveAuthConfig, GetDefaultAuthConfig: take ConfigFile as arg#4412

Merged
thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah:auth_use_config
Aug 8, 2023
Merged

cli/command: ResolveAuthConfig, GetDefaultAuthConfig: take ConfigFile as arg#4412
thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah:auth_use_config

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Both these functions took the whole DockerCLI as argument, but only needed the ConfigFile. ResolveAuthConfig also had an unused context.Context as argument.

This patch updates both functions to accept a ConfigFile, and removes the unused context.Context.

- What I did

- How I did it

- How to verify it

- Description for the changelog

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

@thaJeztah

This comment was marked as outdated.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 13, 2023

Codecov Report

Merging #4412 (211220c) into master (dc13592) will decrease coverage by 0.01%.
Report is 2 commits behind head on master.
The diff coverage is 39.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4412      +/-   ##
==========================================
- Coverage   59.39%   59.39%   -0.01%     
==========================================
  Files         288      288              
  Lines       24782    24779       -3     
==========================================
- Hits        14720    14717       -3     
  Misses       9175     9175              
  Partials      887      887              

… as arg

Both these functions took the whole DockerCLI as argument, but only needed
the ConfigFile. ResolveAuthConfig also had an unused context.Context as
argument.

This patch updates both functions to accept a ConfigFile, and removes the
unused context.Context.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link
Copy Markdown
Member

@akerouanton akerouanton 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 added this to the 25.0.0 milestone Aug 8, 2023
@thaJeztah thaJeztah added the kind/refactor PR's that refactor, or clean-up code label Aug 8, 2023
@thaJeztah thaJeztah merged commit 0c5eb94 into docker:master Aug 8, 2023
@thaJeztah thaJeztah deleted the auth_use_config branch August 8, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants