Skip to content

Commit

Permalink
fix(provider/cf): repair null errors in deploy
Browse files Browse the repository at this point in the history
Co-Authored-By: Jammy Louie <jlouie@pivotal.io>
Co-Authored-By: Jon Schneider <jschneider@pivotal.io>
Co-Authored-By: Joris Melchior <joris.melchior@gmail.com>
Co-Authored-By: Stu Pollock <spollock@pivotal.io>
  • Loading branch information
4 people authored and jkschneider committed Oct 2, 2018
1 parent 1536a70 commit 46989b4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export class CloudFoundryServerGroupCommandBuilder {

public buildNewServerGroupCommand(
app: ICloudFoundryApplication,
defaults: any = {},
defaults: any,
): IPromise<ICloudFoundryCreateServerGroupCommand> {
defaults = defaults || {};
return this.$q.when({
application: app.name,
stack: '',
Expand Down Expand Up @@ -80,7 +81,7 @@ export class CloudFoundryServerGroupCommandBuilder {
instances: serverGroup.instances.length,
routes: serverGroup.loadBalancers,
env: serverGroup.env,
services: serverGroup.serviceInstances.map(serviceInstance => serviceInstance.name),
services: (serverGroup.serviceInstances || []).map(serviceInstance => serviceInstance.name),
reference: '',
account: '',
pattern: '',
Expand Down

0 comments on commit 46989b4

Please sign in to comment.