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

MTV-1610: Avoid uncommon potential inventory crash. #1283

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrnold
Copy link
Contributor

@mrnold mrnold commented Dec 20, 2024

Assuming I have matched up the right code correctly, MTV-1610 shows an inventory crash pointing here: https://github.com/kubev2v/forklift/blob/v2.7.2/pkg/controller/provider/container/vsphere/model.go#L660

This pull request just adds a nil check on the DnsConfig field that appears to cause the problem. I have not been able to configure an IP stack without DNS in vSphere, but this is low risk for a speculative fix. It is pretty much copied from the previous fGuestNet case, and I don't see this DnsConfig used anywhere.

@mrnold mrnold requested review from mnecas and yaacov as code owners December 20, 2024 15:56
Copy link
Contributor

@mansam mansam left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants