Stringify response_code decorator
Cinder refers to the http.HTTPStatus for the response code instead of explicit string/number. Force conversion to string when consuming. Change-Id: Ibf839cefad193294f07e7a00f358ff45934cc4ae
This commit is contained in:
1 changed files with 1 additions and 1 deletions
@@ -730,7 +730,7 @@ class OpenStackServerSourceBase:
if not response_code:
response_codes = getattr(func, "wsgi_code", None)
if response_codes and not isinstance(response_codes, list):
response_codes = [response_codes]
response_codes = [str(response_codes)]
else:
response_codes = [response_code]
if not response_codes:
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.