show the exception message thrown by dogtag._parse_ca_status during install

https://fedorahosted.org/freeipa/ticket/4885

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
Martin Babinsky 2015-03-16 12:36:25 +01:00 committed by Petr Vobornik
parent 5a5e1a2494
commit e8d4f6dba1

View File

@ -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