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:
Katerina Koukiou 2019-07-09 14:12:52 +02:00
parent 00df13f83b
commit bc61db011d
1 changed files with 1 additions and 7 deletions

View File

@ -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);
}