mirror of https://github.com/rancher/ui.git
Handle gitVersion check when cluster is provisioning
if the cluster is provisioning the git version will be undefined
This commit is contained in:
parent
b95399afeb
commit
24ac9d0721
|
|
@ -183,10 +183,14 @@ export default Component.extend(NewOrEdit, {
|
|||
|
||||
showWindowsWarning: computed('scope.currentCluster.version.gitVersion', 'scope.currentCluster.isWindows', function() {
|
||||
const { scope: { currentCluster } } = this;
|
||||
const currentVersion = Semver.coerce(currentCluster.version.gitVersion);
|
||||
|
||||
if (currentCluster.isWindows && currentCluster.isVxlan && Semver.lt(currentVersion, MIN_WINDOWS_NO_WARNING)) {
|
||||
return true;
|
||||
try {
|
||||
const currentVersion = Semver.coerce(currentCluster.version.gitVersion);
|
||||
|
||||
if (currentCluster.isWindows && currentCluster.isVxlan && Semver.lt(currentVersion, MIN_WINDOWS_NO_WARNING)) {
|
||||
return true;
|
||||
}
|
||||
} catch (error) {
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue