-
Notifications
You must be signed in to change notification settings - Fork 6
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
detect other os guest is a mismatch #94
base: master
Are you sure you want to change the base?
Conversation
selectors = { | ||
architecture: architecture.name, | ||
osfamily: operatingsystem.family, | ||
name: operatingsystem.name, | ||
major: operatingsystem.major.to_i | ||
} | ||
|
||
deduced_os = VsphereOsIdentifiers.find_by(selectors) | ||
deduced_os ||= VsphereOsIdentifiers.find_by(selectors.except(:major)) | ||
deduced_os ||= VsphereOsIdentifiers.find_by(selectors.except(:release)) | ||
deduced_os ||= VsphereOsIdentifiers.find_by(selectors.except(:major, :release)) | ||
deduced_os ||= VsphereOsIdentifiers.find_by(selectors.except(:major, :name)) | ||
deduced_os ||= VsphereOsIdentifiers.find_by(selectors.except(:major, :name, :release)) |
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.
Selector release does not exist anymore if I understand correctly. If it is ok, that it was removed lines 37, 38,40 are to be removed. If not it should be readded after line 32.
@timogoebel, @dgoetz what's the state here? Can I help testing this? |
I believe we need to re-think how we'd like to implement this. |
Fixes #92.
Needs #93.