DockerCLI/cli/config/credentials
Danial 3fa3542e90 configfile: Initialize nil AuthConfigs
Initialize AuthConfigs map if it's nil before returning it.
This fixes fileStore.Store nil dereference panic when adding a new key
to the map.

Signed-off-by: Danial Gharib <danial.mail.gh@gmail.com>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit ad43df5e86)
2023-07-19 16:18:34 +02:00
..
credentials.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
default_store.go Use golang.org/x/sys/execabs 2021-01-28 22:27:59 +00:00
default_store_darwin.go defaultCredentialStore: make this a function 2017-09-20 11:14:27 -06:00
default_store_linux.go config/credentials: don't run 'pass' to detect it 2018-06-29 11:38:39 -07:00
default_store_unsupported.go gofmt with go1.17 2022-04-14 16:40:46 +02:00
default_store_windows.go defaultCredentialStore: make this a function 2017-09-20 11:14:27 -06:00
file_store.go configfile: Initialize nil AuthConfigs 2023-07-19 16:18:34 +02:00
file_store_test.go Use designated test domains (RFC2606) in tests 2021-07-29 12:10:38 +02:00
native_store.go linting: ignore some "G101: Potential hardcoded credentials" warnings 2022-08-18 19:16:38 +02:00
native_store_test.go cli/config: remove deprecated io/ioutil and use t.TempDir() 2023-02-27 16:28:59 -05:00