[PATCH] server/autotest.py: Make an error message become an info message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux