PaloAltoNetworks / terraform-provider-sase

Terraform provider for SASE API
Apache License 2.0
1 stars 2 forks source link

Coordinates for Region Objects #2

Closed jamesholland-uk closed 1 year ago

jamesholland-uk commented 1 year ago

Describe the bug

The web GUI lets you use lat/long coordinates for a Region to multiple decimal places:

Screenshot 2023-03-20 at 12 56 32 Screenshot 2023-03-20 at 12 56 45

The provider only let's you use one decimal place (example 51.5) and when you get to two decimal places or more (example 51.51) the error below is receieved:

Screenshot 2023-03-20 at 12 57 42

Expected behavior

Provider should allow input of the same format of number as the web GUI and underlying PAN-OS

Current behavior

Provider errors if more than one decimal place number is used

Steps to reproduce

resource "sase_objects_regions" "test_terraform_01" {
  folder = "Shared"
  name   = "test-region-01-terraform-london"
  geo_location = {
    latitude  = 51.500152
    longitude = -0.126236
  }
}

Screenshots

See above

Your Environment

shinmog commented 1 year ago

This looks to have been a SDK bug, which was fixed in yesterday's 1.2 release:

hashicorp/terraform-plugin-framework#648

I'll update the dependencies for the provider and this should be fixed.