From c1c0a472dd3bdde4d6bdb2a82658da627ac7ea12 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 (cherry picked from commit 594039f794ac5170cf0afd5e82dd08fbcba95633) --- 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 bd09ed2b9..972d9475f 100644 --- a/watcher/datasource/gnocchi.py +++ b/watcher/datasource/gnocchi.py @@ -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']