From 9f565285d1eb281ca00b62ca17c8ad4e3e69db77 Mon Sep 17 00:00:00 2001 From: Joern Barthel Date: Fri, 5 Aug 2016 17:12:28 +0200 Subject: [PATCH] Renamed blocks to cidr_blocks. --- builtin/providers/aws/data_source_aws_ip_ranges.go | 4 ++-- builtin/providers/fastly/data_source_ip_ranges.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/providers/aws/data_source_aws_ip_ranges.go b/builtin/providers/aws/data_source_aws_ip_ranges.go index b03fc36329..799af0ca76 100644 --- a/builtin/providers/aws/data_source_aws_ip_ranges.go +++ b/builtin/providers/aws/data_source_aws_ip_ranges.go @@ -30,7 +30,7 @@ func dataSourceAwsIPRanges() *schema.Resource { Read: dataSourceAwsIPRangesRead, Schema: map[string]*schema.Schema{ - "blocks": &schema.Schema{ + "cidr_blocks": &schema.Schema{ Type: schema.TypeList, Computed: true, Elem: &schema.Schema{Type: schema.TypeString}, @@ -126,7 +126,7 @@ func dataSourceAwsIPRangesRead(d *schema.ResourceData, meta interface{}) error { sort.Strings(prefixes) - if err := d.Set("blocks", prefixes); err != nil { + if err := d.Set("cidr_blocks", prefixes); err != nil { return fmt.Errorf("Error setting ip ranges: %s", err) } diff --git a/builtin/providers/fastly/data_source_ip_ranges.go b/builtin/providers/fastly/data_source_ip_ranges.go index 080ac081b2..cc418465c4 100644 --- a/builtin/providers/fastly/data_source_ip_ranges.go +++ b/builtin/providers/fastly/data_source_ip_ranges.go @@ -22,7 +22,7 @@ func dataSourceFastlyIPRanges() *schema.Resource { Read: dataSourceFastlyIPRangesRead, Schema: map[string]*schema.Schema{ - "blocks": &schema.Schema{ + "cidr_blocks": &schema.Schema{ Type: schema.TypeList, Computed: true, Elem: &schema.Schema{Type: schema.TypeString}, @@ -61,7 +61,7 @@ func dataSourceFastlyIPRangesRead(d *schema.ResourceData, meta interface{}) erro sort.Strings(result.Addresses) - if err := d.Set("blocks", result.Addresses); err != nil { + if err := d.Set("cidr_blocks", result.Addresses); err != nil { return fmt.Errorf("Error setting ip ranges: %s", err) }