cisco-open / terraform-provider-meraki

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

unable to import meraki_organizations_admins #154

Closed hannut closed 1 month ago

hannut commented 2 months ago

Prerequisites

Describe the bug when importing meraki_organizations_admins resource the provider crashes. The resource can point to multiple admins but the documentation only says to list organization id on the command line. How does it know which admin to import? log.txt

I tried to use these in the import:

none of the above work. however the provider crashes only on the "org_id". It seems that any string which is not org_id behaves the same way.

when making a data type of the org_admins below. I get the admins. however it is a list of dicts without keys.

data "meraki_organizations_admins" "example" {
  organization_id = resource.meraki_organizations.example.id
}

Also I can make new admins but not import existing ones.

redacted log as an attachment.

Expected behavior importing existing admin works

Screenshots Please provide an screenshot of the successful API call with cuRL, Postman, etc.

Debug Please provide provider debug. This will help us get a clearer picture of the problem you are having, therefore the solution will be more effective. To enable debug:

export MERAKI_DEBUG=true
export TF_LOG=DEBUG

Environment (please complete the following information):

Additional context Add any other context about the problem here.

obrigg commented 2 months ago

Hello Hannu, Can you kindly attach the debug log so we can look at it?

hannut commented 2 months ago

Link is on the original message https://github.com/user-attachments/files/16835065/log.txt

I can open it, is it visible to you?

obrigg commented 2 months ago

Thank you, I can see it now.

fmunozmiranda commented 1 month ago

Please try it with new version and update us.

hannut commented 1 month ago

Yes, now I can import admins 🥳