Provide two arguments to exception's message

Change-Id: I003c9e88abb08b11c22b008936413ee51f6096b1
Closes-Bug: #1817533
(cherry picked from commit 594039f794)
This commit is contained in:
Tatiana Kholkina
2019-02-25 13:55:22 +03:00
committed by Vlad Gusev
parent bb0e959bd2
commit c1c0a472dd

View File

@@ -95,7 +95,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']