Renamed blocks to cidr_blocks.

This commit is contained in:
Joern Barthel 2016-08-05 17:12:28 +02:00
parent 2caae49a3b
commit 9f565285d1
2 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -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)
}