Browse Source

Merge 60c9279b0a into 745553362e

pull/12392/merge
Nick 5 hours ago
committed by GitHub
parent
commit
c1f5e1cc8b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      common/version-control/src/main/java/org/thingsboard/server/service/sync/vc/GitRepository.java

4
common/version-control/src/main/java/org/thingsboard/server/service/sync/vc/GitRepository.java

@ -605,7 +605,9 @@ public class GitRepository {
try {
keyPairs = SecurityUtils.loadKeyPairIdentities(null,
null, new ByteArrayInputStream(privateKeyContent.getBytes()), (session, resourceKey, retryIndex) -> password);
} catch (Exception e) {}
} catch (Exception e) {
log.error("Failed to load ssh private key", e);
}
if (keyPairs == null) {
throw new IllegalArgumentException("Failed to load ssh private key");
}

Loading…
Cancel
Save