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

Fixing panic in case object received is invalid #6104

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

hmahmood
Copy link
Contributor

No description provided.

@hmahmood hmahmood requested review from dougm and sflxn August 24, 2017 15:59
@hmahmood hmahmood requested a review from emlin August 24, 2017 16:00
log.Warnf("skipping invalid object reference %+v", o)
continue
}

if o.Type != nil && *o.Type != "VirtualMachine" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likely this o.Type != nil is not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

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