From f9cb0d835511aced0e9abb186866344d38fee12a Mon Sep 17 00:00:00 2001 From: David Crespo Date: Tue, 20 Aug 2024 11:51:26 -0500 Subject: [PATCH] middle ground: including rebooting in stop but not reboot list --- app/api/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/util.ts b/app/api/util.ts index dc3be6ab8..59b9f37f9 100644 --- a/app/api/util.ts +++ b/app/api/util.ts @@ -100,8 +100,8 @@ const instanceActions: Record = { // https://github.com/oxidecomputer/omicron/blob/6dd9802/nexus/src/app/instance.rs#L790-L798 // https://github.com/oxidecomputer/propolis/blob/b278193/bin/propolis-server/src/lib/vm/request_queue.rs // https://github.com/oxidecomputer/console/pull/2387#discussion_r1722368236 - reboot: ['running'], - stop: ['running', 'starting'], + reboot: ['running'], // technically rebooting allowed but too weird to say it + stop: ['running', 'starting', 'rebooting'], // NoVmm maps to to Stopped: // https://github.com/oxidecomputer/omicron/blob/6dd9802/nexus/db-model/src/instance_state.rs#L55