From 01d8227dd8770098dfc9b8c144ae53593dfc5cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Wed, 27 Aug 2025 14:35:49 +0200 Subject: [PATCH] cmd/rofl: Fix crash when deploying to non-existent instance --- cmd/rofl/deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rofl/deploy.go b/cmd/rofl/deploy.go index 04058b1d..52da5b56 100644 --- a/cmd/rofl/deploy.go +++ b/cmd/rofl/deploy.go @@ -239,8 +239,8 @@ var ( if deployReplaceMachine { fmt.Printf("Machine instance not found. Obtaining new one...") machine.ID = "" - _, _, err = obtainMachine() - return nil, err + _, insDsc, err = obtainMachine() + return insDsc, err } cobra.CheckErr("Machine instance not found.\nTip: If your instance expired, run this command with --replace-machine flag to replace it with a new machine.")