-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh operating system and fix normalized guest os #376
Refresh operating system and fix normalized guest os #376
Conversation
Add OperatingSystem to new refresh and fix normalized guest_os Fixes BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1521018
Test we refresh correct operating system
Fix targeted refresh specs
Add FIXME to remember the guest_os duplicated information
Add OperatingSystem to old refresh and fix normalized guest_os
Fix old specs after adding OperatingSystem
Fix stubbed specs to have also disconnected OperatingSystem
@@ -171,10 +171,10 @@ def self.key_pair_type | |||
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 = (image.platform == "windows") ? "windows_generic" : "linux_generic" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blomquisg any idea why we've used linux&windows as guest os? The allowed normalized names are only windows_generic and linux_generic, from https://github.com/Ladas/manageiq/blob/6eeec01542e27442e0d6515c39417abc0470b42b/app/models/operating_system.rb#L13
Fix rubocop issues
Checked commits Ladas/manageiq-providers-amazon@ad7ec90~...467a85e with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
…ormalized_guest_os Refresh operating system and fix normalized guest os (cherry picked from commit e8eb2a7) https://bugzilla.redhat.com/show_bug.cgi?id=1524572
Gaprindashvili backport details:
|
Depends on:
Refresh operating system and fix normalized guest os, so it shows up correctly in the landing page reports.
Partially fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1521018
Before:
After this PR, refresh and regeneration of the dashboard widget (the uknown guest of is shown only for archived Vms, since refresh doesn't touch those):