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

Import does not work for virtualization_vm_primary_ip #188

Closed
amhn opened this issue Mar 12, 2023 · 0 comments · Fixed by #198
Closed

Import does not work for virtualization_vm_primary_ip #188

amhn opened this issue Mar 12, 2023 · 0 comments · Fixed by #198
Assignees
Labels
bug Something isn't working

Comments

@amhn
Copy link
Contributor

amhn commented Mar 12, 2023

Summary

Importing a netbox_virtualization_vm_primary_ip by vm id fails with an error.

Version

Netbox version

3.3.10

Terraform version

1.4.0

Provider version

6.1.1

Issue details

Affected Data(s) / Resource(s)

  • resource netbox_virtualization_vm_primary_ip

Terraform Output

╷
│ Error: Cannot import non-existent remote object
│ 
│ While attempting to import an existing object to "module.this.netbox_virtualization_vm_primary_ip.virtual_machines[\"hprv-001_mysql\"]", the provider detected that no object exists with the given id. Only pre-existing objects can be imported;
│ check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
╵

Behaviors

Actual Behavior

Error. See above

Expected Behavior

Resource is imported

Steps to Reproduce

terraform import 'netbox_virtualization_vm_primary_ip.vm_primary_ip' 1

@amhn amhn added the bug Something isn't working label Mar 12, 2023
amhn added a commit to amhn/terraform-provider-netbox that referenced this issue Mar 12, 2023
@amhn amhn mentioned this issue Mar 12, 2023
amhn added a commit to amhn/terraform-provider-netbox that referenced this issue Mar 13, 2023
@smutel smutel closed this as completed in c17026d Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants