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

hypervisor/manager: Fix dropped error #638

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

alrs
Copy link
Contributor

@alrs alrs commented Aug 30, 2019

This fixes a declared but unused err variable.

@cviecco cviecco merged commit 2689a75 into Symantec:master Aug 30, 2019
@rgooch
Copy link
Contributor

rgooch commented Aug 30, 2019

I think this introduces a bug. For any VM which requires a bootloader (the normal case), the code will always fail.
I think the os.Stat() call is dead code, and ignoring the error made it harmless.

@rgooch
Copy link
Contributor

rgooch commented Aug 30, 2019

Was this PR informed by an observed problem or by a code scanning tool?

@rgooch
Copy link
Contributor

rgooch commented Aug 30, 2019

I have confirmed that this patch introduces the bug I described above. I will make a PR which undoes this and removes the dead code.

@rgooch
Copy link
Contributor

rgooch commented Aug 30, 2019

@cviecco: I have sent PR# 639 for reivew to fix this.

@alrs
Copy link
Contributor Author

alrs commented Aug 30, 2019

@rgooch I found it with linting, no actual issue on my end. Sorry to introduce breakage, I'll take cold comfort in seeing some dead code get removed.

@alrs alrs deleted the fix-hypervisor-manager-err branch August 30, 2019 20:24
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.

None yet

3 participants