This commit is contained in:
Vincent Fiduccia 2015-06-12 15:47:38 -07:00
parent 551363747f
commit ec6b308749
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ export default Ember.ObjectController.extend(NewHost, {
this.set('errors',null);
this.set('step',2);
this.get('amazonec2Config').trimValues();
this.set('amazonec2Config.accessKey', (this.get('amazonec2Config.accessKey')||'').trim());
this.set('amazonec2Config.secretKey', (this.get('amazonec2Config.secretKey')||'').trim());
var ec2 = new AWS.EC2({
accessKeyId: this.get('amazonec2Config.accessKey'),