app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb
# Find both OS and SKU if possible, otherwise just the OS type.
Find both OS and SKU if possible, otherwise just the OS type.
Find both OS and SKU if possible otherwise just the OS type .
def guest_os(instance)
        image_reference = instance.properties.storage_profile.try(:image_reference)
        if image_reference&.try(:offer)
          "#{image_reference.offer} #{image_reference.sku.tr('-', ' ')}"
        else
          instance.properties.storage_profile.os_disk.os_type
        end
      end
def guest_os ( instance ) image_reference = instance . properties . storage_profile . try ( :image_reference ) if image_reference &. try ( :offer ) "#{image_reference.offer} #{image_reference.sku.tr('-', ' ')}" else instance . properties . storage_profile . os_disk . os_type end end
Find both OS and SKU if possible, otherwise just the OS type.
Find both OS and SKU if possible otherwise just the OS type .
instance
<not_specific>