Skip to content

Commit

Permalink
fix(appconfig): do not overwrite cloudProviders when editing app
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Feb 28, 2017
1 parent 36b04e0 commit 8afa06e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -69,7 +69,9 @@ export class ApplicationWriter {
const jobs: IJob[] = [];
const command = commandTransformer(application);
command.accounts = application.accounts.join(',');
command.cloudProviders = application.cloudProviders ? application.cloudProviders.join(',') : [];
if (application.cloudProviders) {
command.cloudProviders = application.cloudProviders.join(',');
}
delete command.account;
application.accounts.forEach(account => {
jobs.push({
Expand Down

0 comments on commit 8afa06e

Please sign in to comment.