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

Ensure that genealogy_parent exists in the vm data before using it #14753

Merged

Conversation

mansam
Copy link
Contributor

@mansam mansam commented Apr 12, 2017

vm_and_miq_template_ancestry presently assumes that all VMs have a value for genealogy_parent, which results in an exception and a failed refresh if an instance doesn't have one. This PR checks for the presence of a parent before attempting to continue.

@mansam
Copy link
Contributor Author

mansam commented Apr 12, 2017

@Ladas @tzumainn

@miq-bot
Copy link
Member

miq-bot commented Apr 12, 2017

Checked commit mansam@f4873fb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks good. 👍

@Ladas
Copy link
Contributor

Ladas commented Apr 13, 2017

looks great 👍

@Ladas
Copy link
Contributor

Ladas commented Apr 13, 2017

@miq-bot assign @agrare

@agrare agrare merged commit 282426d into ManageIQ:master Apr 17, 2017
@agrare agrare added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants