summaryrefslogtreecommitdiff
path: root/lib/hyperstack/cli.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 12:17:32 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 12:17:32 +0300
commit9c370329a3339a7a82258f6f8ed677ba1526e1c5 (patch)
treec2e9b7663b1ffb6ea1eaa294f1c02f359365b629 /lib/hyperstack/cli.rb
parent223b422fbca462c07d3c3771e81dd2100d8e3a60 (diff)
fix(manager): only delete state file when VM deletion is confirmed
Ensure Manager#delete does not wipe the state file on generic/transient API failures. The rescue now checks whether the error message indicates the VM is already gone (404, not_found, does not exist) before removing state. This prevents orphaned billable VMs after exhausted retries or transient network errors.
Diffstat (limited to 'lib/hyperstack/cli.rb')
0 files changed, 0 insertions, 0 deletions