From 594039f794ac5170cf0afd5e82dd08fbcba95633 Mon Sep 17 00:00:00 2001 From: Tatiana Kholkina Date: Mon, 25 Feb 2019 13:55:22 +0300 Subject: [PATCH] Provide two arguments to exception's message Change-Id: I003c9e88abb08b11c22b008936413ee51f6096b1 Closes-Bug: #1817533 --- watcher/datasource/gnocchi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/watcher/datasource/gnocchi.py b/watcher/datasource/gnocchi.py index 41ae38b1d..a41f79277 100644 --- a/watcher/datasource/gnocchi.py +++ b/watcher/datasource/gnocchi.py @@ -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']