Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with overlapping sublocation names #223

Closed
jxg81 opened this issue Apr 14, 2023 · 1 comment · Fixed by #227
Closed

Error with overlapping sublocation names #223

jxg81 opened this issue Apr 14, 2023 · 1 comment · Fixed by #227
Assignees
Labels
type/enhancement New feature or request

Comments

@jxg81
Copy link

jxg81 commented Apr 14, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform 1.4.2

Affected Resource(s)

ZIA Location Management Data Source

Terraform Configuration Files

data “zia_location_management” “location” {
name = “test”

Debug Output

{"@Level":"error","@message":"Error: json: cannot unmarshal array into Go struct field Locations.ports of type string","@module":"terraform.ui","@timestamp":"2023-04-14T04:10:21.609067Z","diagnostic":{"severity":"error","summary":"json: cannot unmarshal array into Go struct field Locations.ports of type string","detail":"","address":"module.application["app_web"].data.zia_location_management.location["test"]","range":{"filename":"modules/apps/main.tf","start":{"line":15,"column":43,"byte":260},"end":{"line":15,"column":44,"byte":261}},"snippet":{"context":"data "zia_location_management" "location"","code":"data "zia_location_management" "location" {","start_line":15,"highlight_start_offset":42,"highlight_end_offset":43,"values":[]}},"type":"diagnostic"}

Expected Behavior

Ability to select sublocations based on parent-location/sub-location pair

Actual Behavior

Error with overlapping sublocation names

Steps to Reproduce

Create two locations with overlapping sublocaiton names

See attached screenshot for zia config
image_720

@willguibr willguibr self-assigned this Apr 14, 2023
@willguibr willguibr added the type/enhancement New feature or request label Apr 14, 2023
@willguibr
Copy link
Member

Hi @jxg81
This issue has been addressed as part the PR #227 and a new minor release will be published in the next couple of days.
Thank you.

@willguibr willguibr linked a pull request May 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants