Respect queue's lazy creation
Queue's are now lazy resources. This patch removes the `auto_create` keyword from the queue's constructor. Either posting a message to a queue or setting its metadata will create the queue server side. Partially-Implements blueprint: api-v1.1 Change-Id: I4f2f2f240404b2619ba0ee75a99fecd0ad10040e
This commit is contained in:
parent
9336a4d59e
commit
b9e9375d73
@ -44,7 +44,8 @@ class Queue(object):
|
||||
right after it was called.
|
||||
"""
|
||||
req, trans = self.client._request_and_transport()
|
||||
core.queue_create(trans, req, self._name)
|
||||
if req.api.is_supported('queue_set_metadata'):
|
||||
core.queue_create(trans, req, self._name)
|
||||
|
||||
def metadata(self, new_meta=None, force_reload=False):
|
||||
"""Get metadata and return it
|
||||
|
Loading…
x
Reference in New Issue
Block a user