cisco-open / terraform-provider-meraki

A Terraform Provider for Cisco Meraki
Mozilla Public License 2.0
17 stars 7 forks source link

meraki_organizations_policy_objects_groups broken, both the data and resource #178

Open hannut opened 1 week ago

hannut commented 1 week ago

Prerequisites

Describe the bug Can't read data from meraki_organizations_policy_objects_groups and can't write meraki_organizations_policy_objects_groups resource by examples of the documentation

Expected behavior can read and write meraki_organizations_policy_objects_groups

Debug

data source

Planning failed. OpenTofu encountered an error while generating this plan.

╷
│ Error: Failure when executing GetOrganizationPolicyObjectsGroup
│ 
│   with data.meraki_organizations_policy_objects_groups.example,
│   on policy_objects.tf line 72, in data "meraki_organizations_policy_objects_groups" "example":
│   72: data "meraki_organizations_policy_objects_groups" "example" {
│ 
│ json: cannot unmarshal array into Go value of type
│ meraki.ResponseOrganizationsGetOrganizationPolicyObjectsGroup

resource

meraki_organizations_policy_objects_groups.office_networks: Creating...
╷
│ Error: Error in result.
│ 
│   with meraki_organizations_policy_objects_groups.office_networks,
│   on policy_objects.tf line 51, in resource "meraki_organizations_policy_objects_groups" "office_networks":
│   51: resource "meraki_organizations_policy_objects_groups" "office_networks" {
│ 
│ Error in result.

Log file

redacted_log.log

Environment (please complete the following information):

$ tofu --version                   
OpenTofu v1.8.5
on linux_amd64
+ provider registry.opentofu.org/cisco-open/meraki v0.2.12-alpha
+ provider registry.opentofu.org/e-breuninger/netbox v3.2.1

$ lsb_release -a
LSB Version:    n/a
Distributor ID: Bluefin
Description:    Bluefin-dx 40 (FROM Fedora Silverblue)
Release:        40
Codename:       Archaeopteryx

Additional context

kevingunn-wk commented 5 days ago

Running into this issue as well trying to import a policy object group:

Error: Failure when executing GetOrganizationPolicyObjectsGroup

json: cannot unmarshal string into Go struct field ResponseOrganizationsGetOrganizationPolicyObjectsGroup.objectIds of type int