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

(cherry picked from commit 0f3d095)
  • Loading branch information
agrare authored and Fryguy committed Nov 8, 2023
1 parent fbae95b commit 61f206e
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 61f206e

Please sign in to comment.