Provide two arguments to exception's message
Change-Id: I003c9e88abb08b11c22b008936413ee51f6096b1 Closes-Bug: #1817533
This commit is contained in:
parent
9c4b750c9a
commit
594039f794
|
@ -106,7 +106,8 @@ class GnocchiHelper(base.DataSourceBase):
|
||||||
f=self.gnocchi.resource.search, **kwargs)
|
f=self.gnocchi.resource.search, **kwargs)
|
||||||
|
|
||||||
if not resources:
|
if not resources:
|
||||||
raise exception.ResourceNotFound(name=resource_id)
|
raise exception.ResourceNotFound(name='gnocchi',
|
||||||
|
id=resource_id)
|
||||||
|
|
||||||
resource_id = resources[0]['id']
|
resource_id = resources[0]['id']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue