DockerCLI/cli/command/registry
Sebastiaan van Stijn de40c2b172
Fix panic when failing to get DefaultAuthConfig
Commit f32731f902 fixed a potential panic
when an error was returned while trying to get existing credentials.

However, other code paths currently use the result of `GetDefaultAuthConfig()`
even in an error condition; this resulted in a panic, because a `nil` was
returned.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit c2820a7e3b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-04 14:42:06 +01:00
..
testdata formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
formatter_search.go Remove deprecated docker search --automated and --stars flags 2020-02-13 17:19:54 +01:00
formatter_search_test.go formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
login.go Fix panic when failing to get DefaultAuthConfig 2021-02-04 14:42:06 +01:00
login_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
logout.go Don't filter out registries to logout from with config file contents 2020-06-15 14:29:37 +02:00
search.go Remove deprecated docker search --automated and --stars flags 2020-02-13 17:19:54 +01:00