Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions igvm/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,9 @@ def aws_build(self,
"""

vm_types_overview = self.aws_get_instances_overview()
if vm_types_overview:
Copy link
Member

Choose a reason for hiding this comment

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

Seems aws_get_instances_overview can return None, and then there is iteration aws_get_fitting_vm_types through overview var which can be None and then probably lead to TypeError.

vm_types = self.aws_get_fitting_vm_types(vm_types_overview)
else:
vm_types = self.aws_get_fitting_vm_types(vm_types_overview)

if not vm_types:
vm_types = [AWS_FALLBACK_INSTANCE_TYPE]

root_device = list(
Expand Down