Skip to content

Commit

Permalink
Fixes regression #1179
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrah committed Sep 28, 2023
1 parent 1ee4778 commit 5fdb786
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public AuthConfigurations lookupAllAuthConfigs(DockerRegistryCredentials registr
*/
public AuthConfigurations lookupAllAuthConfigs(AuthConfig additionalAuthConfig) {
AuthConfigurations allAuthConfigs = lookupAllAuthConfigs();
if (allAuthConfigs.getConfigs().isEmpty()) {
if (additionalAuthConfig.getUsername() != null && additionalAuthConfig.getPassword() != null) {
allAuthConfigs.addConfig(additionalAuthConfig);
}
return allAuthConfigs;
Expand Down

0 comments on commit 5fdb786

Please sign in to comment.