PaloAltoNetworks / terraform-provider-panos

Terraform Panos provider
https://www.terraform.io/docs/providers/panos/
MIT License
89 stars 73 forks source link

panos_application_objects returning EDL lists instead #436

Open lyntux opened 7 months ago

lyntux commented 7 months ago

Describe the bug

When calling a data.panos_application_objects block to get the application objects in Panorama, we're getting EDL data instead. The same data as if we called a data.panos_edls block.

Expected behavior

Return data on application objects in Panorama.

Current behavior

Calling a data.panos_application_objects returns the same data as calling a data.panos_edls block.

Possible solution

Looks like the wrong variable/object/function is referenced on line 38 of the application_object.go file.

Steps to reproduce

In my main.tf I have this code block:

data "panos_application_objects" "example" {}

I get the following data returned.

# terraform plan
data.panos_application_objects.example: Reading...
data.panos_application_objects.example: Read complete after 1s [id=shared]

Changes to Outputs:
  + appgroup = {
      + device_group = "shared"
      + id           = "shared"
      + listing      = [
          + "example_edl_1",
          + "example_edl_2",
        ]
      + total        = 2
      + vsys         = "vsys1"
    }

Your Environment

Terraform v1.8.0 on windows_386 + provider registry.terraform.io/paloaltonetworks/panos v1.11.1