Provide two arguments to exception's message

Change-Id: I003c9e88abb08b11c22b008936413ee51f6096b1
Closes-Bug: #1817533
This commit is contained in:
Tatiana Kholkina 2019-02-25 13:55:22 +03:00 committed by Tetiana Lashchova
parent 9c4b750c9a
commit 594039f794
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ class GnocchiHelper(base.DataSourceBase):
f=self.gnocchi.resource.search, **kwargs)
if not resources:
raise exception.ResourceNotFound(name=resource_id)
raise exception.ResourceNotFound(name='gnocchi',
id=resource_id)
resource_id = resources[0]['id']