diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 08:46:26 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 08:46:26 +0300 |
| commit | c96b33d2cdef6a6743f602ba27a46cadef26818a (patch) | |
| tree | 815ab9b4134702579a482682aed77aa49a2ceb57 /lib/hyperstack | |
| parent | 5343872a58f30fa7470011d740b404cfdd7ecdf2 (diff) | |
update hyperstack2 VM state and config after recreation
Diffstat (limited to 'lib/hyperstack')
| -rw-r--r-- | lib/hyperstack/manager.rb | 5 |
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) |
