Skip to content

Commit

Permalink
correction for the typo in error message for A record (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaithra001 authored Oct 30, 2024
1 parent 5d2e656 commit 42a2791
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions infoblox/resource_infoblox_a_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ func resourceARecordCreate(d *schema.ResourceData, m interface{}) error {
ipAddr := d.Get("ip_addr").(string)
nextAvailableFilter := d.Get("filter_params").(string)
if ipAddr == "" && cidr == "" && nextAvailableFilter == "" {
return fmt.Errorf("either of 'ip_addr' or 'cidr' or 'filter_values' values is required")
return fmt.Errorf("either of 'ip_addr' or 'cidr' or 'filter_params' values is required")
}

if ipAddr != "" && cidr != "" && nextAvailableFilter == "" {
return fmt.Errorf("only one of 'ip_addr' or 'cidr' or 'filter_values' values is allowed to be defined")
return fmt.Errorf("only one of 'ip_addr' or 'cidr' or 'filter_params' values is allowed to be defined")
}

var ttl uint32
Expand Down
4 changes: 2 additions & 2 deletions infoblox/resource_infoblox_a_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func testAccARecordCompare(
}

var (
regexpRequiredMissingIPv4 = regexp.MustCompile("either of 'ip_addr' or 'cidr' or 'filter_values' values is required")
regexpCidrIpAddrConflictIPv4 = regexp.MustCompile("only one of 'ip_addr' or 'cidr' or 'filter_values' values is allowed to be defined")
regexpRequiredMissingIPv4 = regexp.MustCompile("either of 'ip_addr' or 'cidr' or 'filter_params' values is required")
regexpCidrIpAddrConflictIPv4 = regexp.MustCompile("only one of 'ip_addr' or 'cidr' or 'filter_params' values is allowed to be defined")

regexpUpdateConflictIPv4 = regexp.MustCompile("only one of 'ip_addr' and 'cidr' values is allowed to update")
regexpNetviewUpdateNotAllowed = regexp.MustCompile("changing the value of 'network_view' field is not allowed")
Expand Down

0 comments on commit 42a2791

Please sign in to comment.