Skip to content

Commit

Permalink
Merge pull request #475 from jaywcarman/vpc_flavor_disks_safe_nav
Browse files Browse the repository at this point in the history
Handle VPC flavor with nil :disks value
  • Loading branch information
agrare committed Oct 28, 2023
2 parents 3406d2c + 52edc73 commit 0f3d095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def vm_and_template_taggings(resource, tags_inventory_objects)
def flavors
collector.flavors.each do |flavor|
memory = flavor&.dig(:memory, :value)
disk = flavor[:disks].first&.dig(:size, :value) || 0
disk = flavor[:disks]&.first&.dig(:size, :value) || 0
persister.flavors.build(
:ems_ref => flavor[:name],
:name => flavor[:name],
Expand Down

0 comments on commit 0f3d095

Please sign in to comment.