diff --git a/app/models/manageiq/providers/amazon/cloud_manager/refresh_parser.rb b/app/models/manageiq/providers/amazon/cloud_manager/refresh_parser.rb index 48d20e95c..18a0dea62 100644 --- a/app/models/manageiq/providers/amazon/cloud_manager/refresh_parser.rb +++ b/app/models/manageiq/providers/amazon/cloud_manager/refresh_parser.rb @@ -166,8 +166,12 @@ def parse_image(image, is_public) uid = image.image_id location = image.image_location guest_os = (image.platform == "windows") ? "windows" : "linux" + if guest_os == "linux" + guest_os = OperatingSystem.normalize_os_name(location) + guest_os = "linux" if guest_os == "unknown" + end - name = get_from_tags(image, :name) + name = get_from_tags(image, :name) name ||= image.name name ||= $1 if location =~ /^(.+?)(\.(image|img))?\.manifest\.xml$/ name ||= uid