Traceback (most recent call last):


 "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step

result = next(coro)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 153, in start_server

yield from server.start()


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 282, in start

self.cors.add(route)


 "/home/homeassistant/.homeassistant/deps/aiohttp_cors/cors_config.py", line 407, in add

routing_entity, config)


 "/home/homeassistant/.homeassistant/deps/aiohttp_cors/cors_config.py", line 136, in add

routing_entity, self._preflight_handler)


 "/home/homeassistant/.homeassistant/deps/aiohttp_cors/urldispatcher_router_adapter.py", line 331, in add_preflight_handler

preflight_route = route.resource.add_route(
AttributeError: 'StaticResource' object has no attribute 'add_route'

```Traceback (most recent call last):


 "/usr/local/bin/checkov", line 5, in <module>

run()


 "/usr/local/lib/python3.8/site-packages/checkov/main.py", line 79, in run

scan_reports = runner_registry.run(root_folder=root_folder, external_checks_dir=args.external_checks_dir,


 "/usr/local/lib/python3.8/site-packages/checkov/common/runners/runner_registry.py", line 25, in run

scan_report = runner.run(root_folder, external_checks_dir=external_checks_dir, files=files,


 "/usr/local/lib/python3.8/site-packages/checkov/terraform/runner.py", line 50, in run

self.check_tf_definition(report, root_folder, runner_filter)


 "/usr/local/lib/python3.8/site-packages/checkov/terraform/runner.py", line 80, in check_tf_definition

definitions_context = parser_registry.enrich_definitions_context(definition)


 "/usr/local/lib/python3.8/site-packages/checkov/terraform/context_parsers/registry.py", line 27, in enrich_definitions_context

self.definitions_context[tf_file][definition_type] = context_parser.run(tf_file, definition_blocks)


 "/usr/local/lib/python3.8/site-packages/checkov/terraform/context_parsers/base_parser.py", line 109, in run

self.context = self.enrich_definition_block(definition_blocks)


 "/usr/local/lib/python3.8/site-packages/checkov/terraform/context_parsers/parsers/locals_context_parser.py", line 25, in enrich_definition_block

self._collect_local_values(locals_block)


 "/usr/local/lib/python3.8/site-packages/checkov/terraform/context_parsers/parsers/locals_context_parser.py", line 11, in _collect_local_values

for local_name, local_value in local_block.items():
AttributeError: 'str' object has no attribute 'items'
