openfaas / python-flask-template

HTTP and Flask-based OpenFaaS templates for Python 3
MIT License
85 stars 86 forks source link

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

Closed welteki closed 6 months ago

welteki commented 6 months ago

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

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

Checklist: