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

Fix undefined variable in python3-http-debian template #72

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

welteki
Copy link
Member

@welteki welteki commented Jan 11, 2024

Description

The format_response function uses an undefined variable resp this should be res. This bug causes functions using the http-debian template to fail.

Motivation and Context

  • I have raised an issue to propose this change (required)
  • My issue has received approval from the maintainers or lead with the design/approved label

Functions using the latest version of the http-debian template would fail with a status 500 this resolves that issue

How Has This Been Tested?

Verified deploying a function build using the updated template returns a 200 status code when invoked.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Functions useing the http-debian tamplate where failing.

The format_response function used an undefined variable 'resp'
this should be 'res'.

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
@alexellis alexellis merged commit e420a6f into openfaas:master Jan 11, 2024
1 check passed
@welteki welteki deleted the fix-http-debian-template branch January 11, 2024 13:39
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