From c96b33d2cdef6a6743f602ba27a46cadef26818a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 08:46:26 +0300 Subject: update hyperstack2 VM state and config after recreation --- lib/hyperstack/manager.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/hyperstack') 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) -- cgit v1.2.3