From: Lucas Meneghel Rodrigues Subject: [PATCH] server/autotest.py: Make an error message become an info message Date: Mon, 9 Aug 2010 15:38:16 -0300 Message-ID: <1281379096-28942-1-git-send-email-lmr@redhat.com> Cc: kvm@vger.kernel.org, dennisliu03@gmail.com, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:47834 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752606Ab0HISiW (ORCPT ); Mon, 9 Aug 2010 14:38:22 -0400 Sender: kvm-owner@vger.kernel.org List-ID: If we can't install the client using the autotest internal package management system, give the user a less intimidating message, after all we'll fall back to use other methods to install the client. Signed-off-by: Lucas Meneghel Rodrigues --- server/autotest.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/autotest.py b/server/autotest.py index f918b27..eb25095 100644 --- a/server/autotest.py +++ b/server/autotest.py @@ -213,11 +213,10 @@ class BaseAutotest(installable_object.InstallableObject): try: self._install_using_packaging(host, autodir) return - except global_config.ConfigError, e: + except (error.PackageInstallError, error.AutoservRunError, + global_config.ConfigError), e: logging.info("Could not install autotest using the packaging " - "system: %s", e) - except (error.PackageInstallError, error.AutoservRunError), e: - logging.error("Could not install autotest from repos") + "system: %s. Trying other methods", e) # try to install from file or directory if self.source_material: -- 1.7.1.1