From 454e5f07b57d6dc2396f496ea20aa432c96d234b Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Thu, 17 Nov 2016 09:37:53 -0800 Subject: [PATCH] provider/aws: aws_alb data source language revisions * Multiple/zero result error slightly updated to be a bit more specific. * Fixed relic of the copy of the resource docs (resource -> data source) --- builtin/providers/aws/data_source_aws_alb.go | 2 +- website/source/docs/providers/aws/d/alb.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/data_source_aws_alb.go b/builtin/providers/aws/data_source_aws_alb.go index b8af7b8d6ce0..d314e0ed7a64 100644 --- a/builtin/providers/aws/data_source_aws_alb.go +++ b/builtin/providers/aws/data_source_aws_alb.go @@ -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) diff --git a/website/source/docs/providers/aws/d/alb.html.markdown b/website/source/docs/providers/aws/d/alb.html.markdown index 958aad610f46..2e5c086ef2e4 100644 --- a/website/source/docs/providers/aws/d/alb.html.markdown +++ b/website/source/docs/providers/aws/d/alb.html.markdown @@ -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