On 04.05.2016 15:14, Gabe Alford wrote:
On Tue, May 3, 2016 at 11:17 PM, Abhijeet Kasurde <akasu...@redhat.com
I am wondering, how are we handling "CalledProcessError" exception ?
I am not sure 100% what you are asking, but from what I understand,
the "CalledProcessError" exception is when a process returns a
non-zero exit status.
However when running 'ipa-nis-manage enable', an exception is never
hit even if portmap is not installed, hence portmap always being enabled.
So it seems that if the process is not installed, "CalledProcessError"
doesn't catch an error.
portmap.enable() may raise the "CalledProcessError" in case that
systemct enable failed and we should catch this exception and handle it
in the same way as it is done now. i.e catch that exception and set
proper return state.
On 05/04/2016 09:17 AM, Gabe Alford wrote:
Fix for https://fedorahosted.org/freeipa/ticket/5857
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code