server/autotest.py: Make an error message become an info message
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.
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- server/autotest.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
server/autotest.py +3 -4
@@ -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