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,7 +307,11 @@ export default Component.extend(NodeDriver, {
}).sort().uniq();
if ( choices.length ) {
set(this, 'selectedZone', choices[0]);
if ( get(this, 'config.zone.length') ) {
set(this, 'selectedZone', `${ get(this, 'config.region') }${ get(this, 'config.zone') }`);
} else {
set(this, 'selectedZone', choices[0]);
}
}
return choices;