mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #112] Unhandled error: <class 'KeyError'>, 'aws_subnet.private[1a]', <traceback object at 0xffffb06148c0> #59
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#59
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 @jonbutland on GitHub (Mar 19, 2024).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/112
The variable,
The code,
terravision draw --source --debug
Traceback (most recent call last):
File "/terravision/terravision", line 265, in
cli(
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/terravision/terravision", line 188, in draw
tfdata = compile_tfdata(source, varfile, workspace, debug, annotate)
File "/terravision/terravision", line 64, in compile_tfdata
tfdata = graphmaker.handle_special_resources(tfdata)
File "/terravision/modules/graphmaker.py", line 462, in handle_special_resources
tfdata = getattr(resource_handlers, handler)(tfdata)
File "/terravision/modules/resource_handlers.py", line 154, in aws_handle_subnet_azs
tfdata["meta_data"][az]["count"] = tfdata["meta_data"][subnet]["count"]
KeyError: 'aws_subnet.private[1a]'
@patrickchugh commented on GitHub (May 11, 2024):
Thanks for the bug report. Can you confirm if this still exists with the latest release pushed just now?
@jonbutland commented on GitHub (May 13, 2024):
That error seems to be fixed now.