Get non-existing queue should return 200
Since lazy queues feature is used in v1.1 and v2, it should return 200 OK when get a non-existing queue. But it still return 404 when use redis backend. APIImpact Change-Id: I8dfcaf63e7dbd16a97452294dc1971647610066d Closes-bug: #1545622
This commit is contained in:
parent
3746b45362
commit
9b77a5bd78
@ -108,7 +108,10 @@ class QueueController(storage.Queue):
|
||||
|
||||
def _get(self, name, project=None):
|
||||
"""Obtain the metadata from the queue."""
|
||||
return self.get_metadata(name, project)
|
||||
try:
|
||||
return self.get_metadata(name, project)
|
||||
except errors.QueueDoesNotExist:
|
||||
return {}
|
||||
|
||||
@utils.raises_conn_error
|
||||
def _create(self, name, metadata=None, project=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user