[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:
parent
4cf0ca24d0
commit
f32a37451d
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue