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:
liolay
2018-03-01 09:14:18 +08:00
committed by Spencer Gibb
parent f834bf5f16
commit 4ba22e5409

View File

@@ -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));