Skip to content

DataSource location default values are not properly used in Read() #428

@kklimonda-cl

Description

@kklimonda-cl

The following data source doesn't work, as default value for panorama_device is not properly propagated form terraform to Go SDK. However, this part of code is shared between resources and datasources and resources work fine.
Once panorama_device is uncommented, resources are read from the server properly.

data "panos_addresses" "example" {
  location = {
    device_group = {
      name            = "DG"
      #panorama_device = "localhost.localdomain"
    }
  }

  addresses = {
    "foo" = {

    }
    "bar" = {

    }
  }
} 

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions