Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timogoebel
Copy link
Member

Fixes #92.

Needs #93.

@timogoebel timogoebel changed the title 92 detect other os detect other os guest is a mismatch Sep 27, 2019
Comment on lines +28 to +40
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))
Copy link

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.

@laugmanuel
Copy link
Member

@timogoebel, @dgoetz what's the state here? Can I help testing this?

@timogoebel
Copy link
Member Author

I believe we need to re-think how we'd like to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

operatingsystem status does not detect "Other OS" mismatch
3 participants