From bdfaa5794d6fd1fbfde0d0dca5546fa98b3720c1 Mon Sep 17 00:00:00 2001 From: micafer Date: Thu, 19 Dec 2019 15:07:26 +0100 Subject: [PATCH] Fix: #963 --- IM/InfrastructureManager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/IM/InfrastructureManager.py b/IM/InfrastructureManager.py index 5103df6a1..a2f83e244 100644 --- a/IM/InfrastructureManager.py +++ b/IM/InfrastructureManager.py @@ -558,7 +558,13 @@ def AddResource(inf_id, radl_data, auth, context=True): break # Concrete systems using VMRC - systems_with_vmrc = InfrastructureManager.systems_with_vmrc(sel_inf, radl, auth) + try: + systems_with_vmrc = InfrastructureManager.systems_with_vmrc(sel_inf, radl, auth) + except Exception as ex: + sel_inf.configured = False + sel_inf.add_cont_msg("Error getting VM images: %s" % str(ex)) + InfrastructureManager.logger.exception("Inf ID: " + sel_inf.id + " error getting VM images") + raise ex # Concrete systems with cloud providers and select systems with the greatest score # in every cloud