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:
Artem Goncharov
2024年07月31日 21:30:06 +02:00
parent 4942cac2c9
commit 70589d047c

View File

@@ -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
openstack/codegenerator
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.

The note is not visible to the blocked user.