Avoid overriding the base url template
... so that the template keeps working during multiple calls. Closes-Bug: #1758667 Change-Id: I2e5507053940c81d3b516823078139265a1c9b30
This commit is contained in:
parent
31b53f222c
commit
6d03da3d69
@ -35,10 +35,10 @@ class AlarmHistoryManager(base.Manager):
|
||||
:type sorts: list of str
|
||||
"""
|
||||
pagination = utils.get_pagination_options(limit, marker, sorts)
|
||||
self.url = self.url % alarm_id
|
||||
url = self.url % alarm_id
|
||||
if pagination:
|
||||
self.url = "%s?%s" % (self.url, pagination)
|
||||
return self._get(self.url).json()
|
||||
url = "%s?%s" % (url, pagination)
|
||||
return self._get(url).json()
|
||||
|
||||
def search(self, query=None):
|
||||
"""List of history matching corresponding query
|
||||
|
Loading…
x
Reference in New Issue
Block a user