Fix error message formatting for Dogtag plugin exceptions

It was missing the value type, so it wasn't displaying the errors
properly.

Change-Id: I45fda413231cb36414b99917ecfcf6a02d896b5a
This commit is contained in:
Juan Antonio Osorio Robles committed 2017-02-02 19:30:55 +02:00
1 parent 50db782708
commit 02506ebbc2
1 file changed
+3 -3
+3 -3
View File
@@ -495,20 +495,20 @@ class CannotDeletePreferredCA(BarbicanHTTPException):
class BadSubCACreationRequest(BarbicanHTTPException):
message = u._("Errors returned by CA when attempting to "
"create subordinate CA: %(reason)")
"create subordinate CA: %(reason)s")
client_message = message
status_code = 400
class SubCACreationErrors(BarbicanHTTPException):
message = u._("Errors returned by CA when attempting to create "
"subordinate CA: %(reason)")
"subordinate CA: %(reason)s")
client_message = message
class SubCADeletionErrors(BarbicanHTTPException):
message = u._("Errors returned by CA when attempting to delete "
"subordinate CA: %(reason)")
"subordinate CA: %(reason)s")
client_message = message