Fix: Do not delete SSH Key from disk during server validation error
This commit is contained in:
parent
6a6b947fba
commit
845d32c94c
1 changed files with 1 additions and 4 deletions
|
|
@ -912,12 +912,9 @@ public function isFunctional()
|
|||
$isFunctional = $this->settings->is_reachable && $this->settings->is_usable && !$this->settings->force_disabled;
|
||||
|
||||
if (!$isFunctional) {
|
||||
if ($this->privateKey) {
|
||||
PrivateKey::deleteFromStorage($this->privateKey);
|
||||
}
|
||||
Storage::disk('ssh-mux')->delete($this->muxFilename());
|
||||
}
|
||||
|
||||
|
||||
return $isFunctional;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue