Skip to content

Commit b1cbbb8

Browse files
authored
Merge pull request #584 from oasisprotocol/matevz/fix/rofl-deploy-crash
cmd/rofl: Fix crash when deploying to non-existent instance
2 parents 45dddba + 01d8227 commit b1cbbb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/rofl/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ var (
239239
if deployReplaceMachine {
240240
fmt.Printf("Machine instance not found. Obtaining new one...")
241241
machine.ID = ""
242-
_, _, err = obtainMachine()
243-
return nil, err
242+
_, insDsc, err = obtainMachine()
243+
return insDsc, err
244244
}
245245

246246
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.")

0 commit comments

Comments
 (0)