Renamed blocks to cidr_blocks.
This commit is contained in:
parent
2caae49a3b
commit
9f565285d1
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue