Skip to content

Commit

Permalink
middle ground: including rebooting in stop but not reboot list
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Aug 20, 2024
1 parent e533ff7 commit f9cb0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ const instanceActions: Record<string, InstanceState[]> = {
// 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
Expand Down

0 comments on commit f9cb0d8

Please sign in to comment.