Skip to content

Commit 48b53ef

Browse files
authored
Merge pull request #1819 from stgraber/main
incusd/cluster/evacuate: Don't live-migrate stopped instances
2 parents 52a3db0 + a373325 commit 48b53ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/incusd/api_cluster_evacuation.go

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func evacuateInstancesFunc(ctx context.Context, inst instance.Instance, opts eva
227227
// Done with this instance.
228228
return nil
229229
}
230+
} else if !isRunning {
231+
// Can't live migrate if we're stopped.
232+
action = "migrate"
230233
}
231234

232235
// Find a new location for the instance.

0 commit comments

Comments
 (0)