Use http code constant instead of int

Change-Id: I1dce94ac6192746a7b90646fe4b4460a651bced1
This commit is contained in:
wanghui 2018-03-26 15:22:28 +08:00
parent 744d6b6ab3
commit 9b4c978f99

View File

@ -314,7 +314,7 @@ class Bulk(object):
resp = head_cont_req.get_response(self.app)
if resp.is_success:
return False
if resp.status_int == 404:
if resp.status_int == HTTP_NOT_FOUND:
new_env = req.environ.copy()
new_env['PATH_INFO'] = container_path
new_env['swift.source'] = 'EA'