Skip to content

Commit

Permalink
fix(cf): Deploy stage config template import missing routes (#7291)
Browse files Browse the repository at this point in the history
When the imported server group had no routes, the routes property would be undefined where it should have been an empty array.
spinnaker/spinnaker#4711
  • Loading branch information
Pierre Delagrave authored and Jammy Louie committed Aug 7, 2019
1 parent 298c012 commit 0488d51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class CloudFoundryServerGroupCommandBuilder {
? serverGroup.droplet.buildpacks.map(item => item.name)
: [],
instances: serverGroup.instances ? serverGroup.instances.length : 1,
routes: serverGroup.loadBalancers,
routes: serverGroup.loadBalancers || [],
environment: CloudFoundryServerGroupCommandBuilder.envVarsFromObject(serverGroup.env),
services: (serverGroup.serviceInstances || []).map(serviceInstance => serviceInstance.name),
healthCheckType: 'port',
Expand Down

0 comments on commit 0488d51

Please sign in to comment.