[Freeipa-devel] [PATCH 0185] messages: specify message type for ResultFormattingError

Alexander Bokovoy abokovoy at redhat.com
Thu Jul 14 08:06:40 UTC 2016


On Wed, 13 Jul 2016, Martin Babinsky wrote:
>https://fedorahosted.org/freeipa/ticket/6081
>
>-- 
>Martin^3 Babinsky

>From dd2dfe4bf0a629716145af83c1b7f73595290079 Mon Sep 17 00:00:00 2001
>From: Martin Babinsky <mbabinsk at redhat.com>
>Date: Wed, 13 Jul 2016 18:22:04 +0200
>Subject: [PATCH] messages: specify message type for ResultFormattingError
>
>the ResultFormattingError message class was missing a `type` member which
>could cause `otptoken-add` command to crash during QR image rendering using
>suboptimal TTY settings
>
>https://fedorahosted.org/freeipa/ticket/6081
>---
> ipalib/messages.py | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/ipalib/messages.py b/ipalib/messages.py
>index 7288606f6ac923c2c87fadba5f2a6a2d9dadb7f5..6abad64a8259a8e164db60f63e75bbb9c230e7bf 100644
>--- a/ipalib/messages.py
>+++ b/ipalib/messages.py
>@@ -363,6 +363,7 @@ class ResultFormattingError(PublicMessage):
>     """
>     **13019** Unable to correctly format some part of the result
>     """
>+    type = "warning"
>     errno = 13019
> 
> 
ACK.

-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list