Skip to contentSkip to conversation

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

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Aug 9, 2010 KVM

lore
Share & tools
lore
#0 lore raw

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

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.

---
 server/autotest.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
server/autotest.py +3 -4
index f918b27..eb25095 100644
@@ -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:
Signature · 1 line
1.7.1.1