Skip to content

Commit 1f810dd

Browse files
committed
[JENKINS-43786] Reverting development code
1 parent 0543c5d commit 1f810dd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/main/java/hudson/plugins/sshslaves/verifiers/MissingVerificationStrategyAdministrativeMonitor.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ public class MissingVerificationStrategyAdministrativeMonitor extends Administra
4343

4444
@Override
4545
public boolean isActivated() {
46-
return true;
46+
for (Computer computer : Jenkins.getActiveInstance().getComputers()) {
47+
if (computer instanceof SlaveComputer) {
48+
ComputerLauncher launcher = ((SlaveComputer) computer).getLauncher();
49+
50+
if (launcher instanceof SSHLauncher && null == ((SSHLauncher) launcher).getSshHostKeyVerificationStrategy()) {
51+
return true;
52+
}
53+
}
54+
}
55+
56+
return false;
4757
}
4858

4959
/**

0 commit comments

Comments
 (0)