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

meraki_organizations_policy_objects_groups broken, both the data and resource #178

Open
1 of 3 tasks
hannut opened this issue Nov 8, 2024 · 2 comments
Open
1 of 3 tasks
Labels
documentation Improvements or additions to documentation in-progress

Comments

@hannut
Copy link

hannut commented Nov 8, 2024

Prerequisites

  • Have you tested the operation in the API directly?
  • Do you have the latest Terraform provider version?
  • Review the compatibility matrix before opening an issue.

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

@fmunozmiranda fmunozmiranda added the documentation Improvements or additions to documentation label Nov 10, 2024
@kevingunn-wk
Copy link

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

fmunozmiranda added a commit that referenced this issue Nov 27, 2024
meraki_organizations_policy_objects_groups broken, both the data and resource #178
fmunozmiranda added a commit that referenced this issue Nov 27, 2024
BUGFIXES:
* meraki_debug no longer works #179 [fixed].
* appliance_traffic_shaping_rules does not store order #173, Changing to list to preserve the order.
* Terraform registry documentation updates #180.
* meraki_organizations_policy_objects_groups broken, both the data and resource #178, documentation issue, changing types to umarshal struct.
FEATURES:
* **New Resource** `resource_meraki_networks_appliance_static_routes`
* **New Data Source** `data_source_meraki_networks_appliance_static_routes`
@fmunozmiranda
Copy link
Collaborator

Hello, please try it with new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation in-progress
Projects
None yet
Development

No branches or pull requests

3 participants