From 8495af1a50faca496fe2ce425b9b3a7f21ba1ea6 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 1 Aug 2011 15:16:24 -0400 Subject: Re-arrange CA configuration code to reduce the number of restarts. Ade Lee from the dogtag team looked at the configuration code and determined that a number of restarts were not needed and recommended re-arranging other code to reduce the number of restarts to one. https://fedorahosted.org/freeipa/ticket/1555 --- ipaserver/install/service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipaserver/install/service.py') diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index efbb2c933..62db9baf5 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -258,7 +258,10 @@ class Service(object): if est.tm_min > 0: if est.tm_min > 1: plural = 's' - self.print_msg('%s: Estimated time %d minute%s' % (message, est.tm_min, plural)) + if est.tm_sec > 0: + self.print_msg('%s: Estimated time %d minute%s %d seconds' % (message, est.tm_min, plural, est.tm_sec)) + else: + self.print_msg('%s: Estimated time %d minute%s' % (message, est.tm_min, plural)) else: if est.tm_sec > 1: plural = 's' -- cgit