Skip to content

Commit

Permalink
Fix: #963
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 19, 2019
1 parent 2d6347a commit bdfaa57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion IM/InfrastructureManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdfaa57

Please sign in to comment.