[sytle] use http code constant instead of int

To keep the consistency, using http_client.ACCEPTED instead
of 202 in contrib/api/services.py

Change-Id: I495fffe7180a0b1120b2413baef38d92ced8fd56
This commit is contained in:
phenom 2018-03-13 11:03:52 +08:00
parent 4cf0ca24d0
commit f32a37451d
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class ServiceController(wsgi.Controller):
self.rpc_apis[service.binary].set_log_levels(context,
service, log_req)
return webob.Response(status_int=202)
return webob.Response(status_int=http_client.ACCEPTED)
def _get_log(self, context, body):
"""Get current log levels for services."""