Skip to content

KeyError Unhandled error: <class 'KeyError'>, 'count', <traceback object at 0x7fec41ed67c0>  #100

@simon-pp

Description

@simon-pp

terravision draw --source --show

Key error from debug, terraform provider is aws

Traceback (most recent call last): File "terravision/terravision", line 245, in <module> cli( File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "terravision/terravision", line 169, in draw tfdata = compile_tfdata(source, varfile, debug, annotate) File "terravision/terravision", line 72, 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: 'count'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions