From 769bec85dc8c281c3c4f3619e3aa3479fdff03ab Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Tue, 14 Aug 2012 20:07:42 +0900 Subject: [PATCH] Ignore TearDown if the SR was not found If a software release fail to install because it was not found, there is no reason to tear down it. --- slapos/agent/agent.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/slapos/agent/agent.py b/slapos/agent/agent.py index a6e0d5f..93e6fed 100644 --- a/slapos/agent/agent.py +++ b/slapos/agent/agent.py @@ -494,6 +494,11 @@ def main(): del running_test_dict[section] try: tester.teardown() + except slapos.slap.NotFoundError: + # This exception is ignored because we cannot + # Teardown if SR URL do not exist. + logger.exception('Fail and not found') + pass except Exception: logger.exception('teardown failed, human ' 'assistance needed for cleanup') -- 2.30.9