machines: Don't reset the OS to unspecified if OS autodetection failed
If the user manually inserted the OS but autodetection failed let's trust him instead of overwritting it with the default value. Closes #12263
This commit is contained in:
parent
00df13f83b
commit
bc61db011d
|
@ -526,13 +526,7 @@ class CreateVmModal extends React.Component {
|
|||
os: osEntry[0].shortId
|
||||
});
|
||||
}
|
||||
}, ex => {
|
||||
console.log("osinfo-detect command failed: ", ex.message);
|
||||
this.setState({
|
||||
vendor: NOT_SPECIFIED,
|
||||
os: OTHER_OS_SHORT_ID,
|
||||
});
|
||||
});
|
||||
}, ex => console.log("osinfo-detect command failed: ", ex.message));
|
||||
};
|
||||
this.typingTimeout = setTimeout(() => onOsAutodetect(value), 250);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue