[Freeipa-devel] [PATCH 0020] show the exception message raised by dogtag._parse_ca_status during install

Fraser Tweedale ftweedal at redhat.com
Thu Mar 26 03:26:30 UTC 2015


On Wed, Mar 25, 2015 at 12:09:09PM +0100, Martin Babinsky wrote:
> This should be patch 20 I think. I must make some cleanup in my patch
> numbers.
> 
> https://fedorahosted.org/freeipa/ticket/4885
> 
> -- 
> Martin^3 Babinsky

ACK

> From 7e0f8b4d65f6c3f8c7d14f154aa5ef80bb064c4c Mon Sep 17 00:00:00 2001
> From: Martin Babinsky <mbabinsk at redhat.com>
> Date: Mon, 16 Mar 2015 12:36:25 +0100
> Subject: [PATCH] show the exception message thrown by dogtag._parse_ca_status
>  during install
> 
> https://fedorahosted.org/freeipa/ticket/4885
> ---
>  ipaplatform/redhat/services.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/ipaplatform/redhat/services.py b/ipaplatform/redhat/services.py
> index 8759cab76c7d72a3abbf935e7f15f7a32a0b6987..c9994e409a8a005012c0467c016608b8f689eef1 100644
> --- a/ipaplatform/redhat/services.py
> +++ b/ipaplatform/redhat/services.py
> @@ -212,8 +212,8 @@ class RedHatCAService(RedHatService):
>  
>                  status = dogtag._parse_ca_status(stdout)
>                  # end of workaround
> -            except Exception:
> -                status = 'check interrupted'
> +            except Exception as e:
> +                status = 'check interrupted due to error: %s' % e
>              root_logger.debug('The CA status is: %s' % status)
>              if status == 'running':
>                  break
> -- 
> 2.1.0
> 

> -- 
> Manage your subscription for the Freeipa-devel mailing list:
> https://www.redhat.com/mailman/listinfo/freeipa-devel
> Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code




More information about the Freeipa-devel mailing list