mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #176] IndexError in handle_variants when resource name has no dot separator #103
Labels
No labels
bug
enhancement
enhancement
good first issue
good first issue
good first issue
pipeline
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/terravision#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mmclane on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/176
Problem
Terravision crashes with an
IndexErrorinhandle_variants()when processing resource names that don't contain a dot (.) separator.Error Message
Context
This occurs after successfully parsing HCL and processing 231 resources. The error happens during the "Checking for additional links" phase.
The code assumes every resource string will have at least one dot, but some resource identifiers may not follow that pattern.
Environment
patrickchugh/terravisionSuggested Fix
Add a guard before the split:
@patrickchugh commented on GitHub (Mar 23, 2026):
How is this possible? Every resource in terraform has a resource type and resource name separated by a dot right ? E. G. aws_instance.myec2 ?
@patrickchugh commented on GitHub (Mar 24, 2026):
@mmclane can you try with the latest version v0.24 and let me know if this can be closed?
@patrickchugh commented on GitHub (Mar 29, 2026):
Closing as no response from OP