summaryrefslogtreecommitdiff
path: root/lib/hyperstack/manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hyperstack/manager.rb')
-rw-r--r--lib/hyperstack/manager.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/hyperstack/manager.rb b/lib/hyperstack/manager.rb
index e8382bb..2813233 100644
--- a/lib/hyperstack/manager.rb
+++ b/lib/hyperstack/manager.rb
@@ -569,8 +569,9 @@ module HyperstackVM
return true if existing == scanned
- raise Error,
- "SSH host key mismatch for #{host}. Refusing to continue. Delete #{@config.ssh_known_hosts_path} only if you intentionally replaced this VM."
+ warn "SSH host key mismatch for #{host}. Replacing cached key (VM was likely recreated)."
+ write_known_host_entries(scanned)
+ true
end
def scan_ssh_host_keys(host)