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:

committed by
Takashi Kajinami

parent
31b53f222c
commit
6d03da3d69
@@ -35,10 +35,10 @@ class AlarmHistoryManager(base.Manager):
|
|||||||
:type sorts: list of str
|
:type sorts: list of str
|
||||||
"""
|
"""
|
||||||
pagination = utils.get_pagination_options(limit, marker, sorts)
|
pagination = utils.get_pagination_options(limit, marker, sorts)
|
||||||
self.url = self.url % alarm_id
|
url = self.url % alarm_id
|
||||||
if pagination:
|
if pagination:
|
||||||
self.url = "%s?%s" % (self.url, pagination)
|
url = "%s?%s" % (url, pagination)
|
||||||
return self._get(self.url).json()
|
return self._get(url).json()
|
||||||
|
|
||||||
def search(self, query=None):
|
def search(self, query=None):
|
||||||
"""List of history matching corresponding query
|
"""List of history matching corresponding query
|
||||||
|
Reference in New Issue
Block a user