wrong value eval at ignoreLocalSshSettings (#892)
when "spring.cloud.config.server.git.ignoreLocalSshSettings" is "true",there is a wrong value eval at ignoreLocalSshSettings to decide whether SshUri configured in "spring.cloud.config.server.git.repos" need be validate
This commit is contained in:
@@ -55,7 +55,7 @@ public class PrivateKeyValidator implements ConstraintValidator<PrivateKeyIsVali
|
||||
List<SshUri> extractedProperties = sshPropertyValidator.extractRepoProperties(sshUriProperties);
|
||||
|
||||
for (SshUri extractedProperty : extractedProperties) {
|
||||
if (sshUriProperties.isIgnoreLocalSshSettings() && isSshUri(extractedProperty.getUri())) {
|
||||
if (extractedProperty.isIgnoreLocalSshSettings() && isSshUri(extractedProperty.getUri())) {
|
||||
validationResults.add(
|
||||
isPrivateKeyPresent(extractedProperty, context)
|
||||
&& isPrivateKeyFormatCorrect(extractedProperty, context));
|
||||
|
||||
Reference in New Issue
Block a user