Fix registry issue

This commit is contained in:
loganhz 2018-04-26 23:47:14 +08:00
parent 7fc6f081cb
commit 3aadeb1c87
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ export default Component.extend(ClusterDriver, {
set(this, 'initialVersion', get(this, 'cluster.rancherKubernetesEngineConfig.kubernetesVersion'));
const config = get(this, 'cluster.rancherKubernetesEngineConfig');
if ( get(config, 'privateRegistries.length') > 0 ) {
if ( config && get(config, 'privateRegistries.length') > 0 ) {
const registry = get(config, 'privateRegistries.firstObject');
set(this, 'registry', 'custom');
set(this, 'registryUrl', get(registry, 'url'));