Metadata is not optional (to storage).
Test cases are not affected. Change-Id: I8dd90839cb87fbccf57544f8068eece513a35bb2
This commit is contained in:
parent
a23643ec3c
commit
938d3dd73d
@ -99,14 +99,14 @@ class QueueBase(ControllerBase):
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def upsert(self, name, tenant=None, metadata=None):
|
||||
def upsert(self, name, metadata, tenant=None):
|
||||
"""
|
||||
This methods handles both creates and updates
|
||||
operations for queues.
|
||||
|
||||
:param name: The queue name
|
||||
:param tenant: Tenant id
|
||||
:param metadata: Arbitrary metadata
|
||||
:param tenant: Tenant id
|
||||
:returns: True if a queue was created and False
|
||||
if it was updated.
|
||||
"""
|
||||
|
@ -41,7 +41,7 @@ class QueueController(storage.QueueBase):
|
||||
def get(self, name, tenant=None):
|
||||
super(QueueController, self).get(name, tenant=tenant)
|
||||
|
||||
def upsert(self, name, tenant=None, metadata=None):
|
||||
def upsert(self, name, metadata, tenant=None):
|
||||
super(QueueController, self).upsert(name, tenant=tenant,
|
||||
metadata=metadata)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user