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

main: Check cmd in postRun function #718

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

monstermunchkin
Copy link
Member

If distrobuilder fails for any reason, postRun is called with nil
arguments. This caused a panic as it was trying to the cmd argument
which would be nil in this case.

This adds a nil check.

Signed-off-by: Thomas Hipp thomas.hipp@canonical.com

If distrobuilder fails for any reason, postRun is called with nil
arguments. This caused a panic as it was trying to the cmd argument
which would be nil in this case.

This adds a nil check.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
@stgraber stgraber merged commit 09a7df8 into lxc:master May 12, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants