Skip to content

Commit

Permalink
machines: always remove the dummy UI VM from the global state when vi…
Browse files Browse the repository at this point in the history
…rt-install returned

This condition has not purpose that I can see, it looks like an ancient
bug that we never noticed.
  • Loading branch information
KKoukiou authored and martinpitt committed Jan 21, 2021
1 parent f32a123 commit 6735ae7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/machines/libvirt-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,9 +1007,7 @@ export function CREATE_VM({ connectionName, vmName, source, sourceType, os, memo
], opts)
.done(() => {
finishVmCreateInProgress(dispatch, vmName, connectionName);
if (startVm) {
clearVmUiState(dispatch, vmName, connectionName);
}
clearVmUiState(dispatch, vmName, connectionName);
})
.fail((exception, data) => {
clearVmUiState(dispatch, vmName, connectionName); // inProgress cleanup
Expand Down

0 comments on commit 6735ae7

Please sign in to comment.