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

fix: Remove unrequired availability_domain from vnic_attachments data #71

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

devoncrouse
Copy link
Contributor

The availability_domain parameter isn't required for oci_core_vnic_attachments, and a changed value currently yields an error on apply when trying to evaluate the data source, though the intention is to ignore lifecycle changes:

│ Error: Invalid index                                                                                                                                                                                     
│                                                                                                                                                                                                          
│   on .terraform/modules/operator/datasources.tf line 64, in data "oci_core_vnic" "operator_vnic":                                                                                                        
│   64:   vnic_id    = lookup(data.oci_core_vnic_attachments.operator_vnics_attachments.vnic_attachments[0], "vnic_id")                                          
│     ├────────────────                                                                                                                                                                                    
│     │ data.oci_core_vnic_attachments.operator_vnics_attachments.vnic_attachments is empty list of object                                                        
│                                                                                                    
│ The given key does not identify an element in this collection value: the collection has no elements.

Signed-off-by: Devon Crouse <devon.crouse@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 10, 2022
Copy link
Contributor

@hyder hyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@hyder hyder merged commit 8f7d856 into oracle-terraform-modules:main Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants