fix undefined error

This commit is contained in:
Westly Wright 2018-06-29 16:06:02 -07:00
parent cf94827aa6
commit fe53e01883
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ export default Component.extend({
let config = get(this, 'cluster.rancherKubernetesEngineConfig');
if (get(config, 'cloudProvider')) {
if (config && get(config, 'cloudProvider')) {
delete config.cloudProvider;
}
@ -100,7 +100,7 @@ export default Component.extend({
let nue = {};
let selectedCloudProvider = get(this, 'selectedCloudProvider');
let cluster = get(this, 'cluster');
let config = get(cluster, 'rancherKubernetesEngineConfig');
let config = get(cluster, 'rancherKubernetesEngineConfig') || set(cluster, 'rancherKubernetesEngineConfig', {});
switch (selectedCloudProvider) {
case 'azure':