Skip to content

Commit

Permalink
Minor change to avoid recontextualize if no VMs are added
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 12, 2016
1 parent c1dcbc5 commit 7a488ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IM/InfrastructureManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def AddResource(inf_id, radl_data, auth, context = True, failed_clouds = []):
InfrastructureManager.logger.info("VMs %s successfully added to Inf id %s" % (new_vms, sel_inf.id))

# Let's contextualize!
if context:
if context and new_vms:
sel_inf.Contextualize(auth)

return [vm.im_id for vm in new_vms]
Expand Down

0 comments on commit 7a488ce

Please sign in to comment.