From 41aee4a32eb8c87416564b48808567f9ecb2cf63 Mon Sep 17 00:00:00 2001 From: Aaron-DH Date: Thu, 3 Mar 2016 20:02:00 +0800 Subject: [PATCH] Fix log message error when create trustee failed Change-Id: Ie600a9e93577bb19831f16f3add4acc6a2a69de1 Closes-Bug:#1552671 --- magnum/common/exception.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/magnum/common/exception.py b/magnum/common/exception.py index caca30f5fa..9f06fe469e 100644 --- a/magnum/common/exception.py +++ b/magnum/common/exception.py @@ -554,11 +554,12 @@ class TrustDeleteFailed(MagnumException): class TrusteeCreateFailed(MagnumException): - message = _("Failed to create trustee %(username) in domain $(domain_id)") + message = _("Failed to create trustee %(username)s " + "in domain %(domain_id)s") class TrusteeDeleteFailed(MagnumException): - message = _("Failed to delete trustee %(trustee_id)") + message = _("Failed to delete trustee %(trustee_id)s") class QuotaAlreadyExists(Conflict):