We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8e7d3 commit bac3421Copy full SHA for bac3421
server/src/main/java/com/cloud/server/ConfigurationServerImpl.java
@@ -614,7 +614,7 @@ public void updateKeyPairs() {
614
}
615
// FIXME: take a global database lock here for safety.
616
boolean onWindows = isOnWindows();
617
- if(!onWindows) {
+ if (!onWindows && !(privkeyfile.exists() && pubkeyfile.exists())) {
618
Script.runSimpleBashScript("if [ -f " + privkeyfile + " ]; then rm -f " + privkeyfile + "; fi; ssh-keygen -t ecdsa -m PEM -N '' -f " + privkeyfile + " -q 2>/dev/null || ssh-keygen -t ecdsa -N '' -f " + privkeyfile + " -q");
619
620
0 commit comments