Fix editing aws node template issue

https://github.com/rancher/rancher/issues/15607
This commit is contained in:
loganhz 2018-11-14 11:34:05 +08:00
parent 0a7d8ae217
commit c52c25c26f
1 changed files with 5 additions and 1 deletions

View File

@ -307,8 +307,12 @@ export default Component.extend(NodeDriver, {
}).sort().uniq(); }).sort().uniq();
if ( choices.length ) { if ( choices.length ) {
if ( get(this, 'config.zone.length') ) {
set(this, 'selectedZone', `${ get(this, 'config.region') }${ get(this, 'config.zone') }`);
} else {
set(this, 'selectedZone', choices[0]); set(this, 'selectedZone', choices[0]);
} }
}
return choices; return choices;
}.property('allSubnets.@each.{zone}'), }.property('allSubnets.@each.{zone}'),