Skip to content

Commit

Permalink
provider/aws: aws_alb data source language revisions
Browse files Browse the repository at this point in the history
 * Multiple/zero result error slightly updated to be a bit more
   specific.
 * Fixed relic of the copy of the resource docs (resource -> data
   source)
  • Loading branch information
Chris Marchesi committed Nov 17, 2016
1 parent 3f3d6c3 commit 454e5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin/providers/aws/data_source_aws_alb.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func dataSourceAwsAlbRead(d *schema.ResourceData, meta interface{}) error {
return errwrap.Wrapf("Error retrieving ALB: {{err}}", err)
}
if len(describeResp.LoadBalancers) != 1 {
return fmt.Errorf("Your search returned %d results. Please narrow your search.", len(describeResp.LoadBalancers))
return fmt.Errorf("Search returned %d results, please revise so only one is returned", len(describeResp.LoadBalancers))
}
d.SetId(*describeResp.LoadBalancers[0].LoadBalancerArn)

Expand Down
2 changes: 1 addition & 1 deletion website/source/docs/providers/aws/d/alb.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: "aws"
page_title: "AWS: aws_alb"
sidebar_current: "docs-aws-datasource-alb"
description: |-
Provides an Application Load Balancer resource.
Provides an Application Load Balancer data source.
---

# aws\_alb
Expand Down

0 comments on commit 454e5f0

Please sign in to comment.