Merge pull request #3226 from loganhz/gke-version

Fix gke k8s version issue
This commit is contained in:
Vincent Fiduccia 2019-08-12 11:31:21 -07:00 committed by GitHub
commit 075becbc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -304,12 +304,13 @@ export default Component.extend(ClusterDriver, {
}), }),
versionChanged: observer('config.masterVersion', 'versionChoices.[]', function() { versionChanged: observer('config.masterVersion', 'versionChoices.[]', function() {
if (this.saving) { const current = get(this, 'config.masterVersion');
if (this.saving && current) {
return; return;
} }
const versions = get(this, 'versionChoices') || []; const versions = get(this, 'versionChoices') || [];
const current = get(this, 'config.masterVersion');
const exists = versions[versions.indexOf(current)]; const exists = versions[versions.indexOf(current)];
if ( !exists ) { if ( !exists ) {