Skip to content

Commit

Permalink
Continue on the the next tenant_id on 400 codes
Browse files Browse the repository at this point in the history
* Melange connection raises Exception if the response is > 400
* Fixes lp967261

Change-Id: I4592e5907276d290f4a54aa27dd4e91a62cc83e8
  • Loading branch information
jkoelker committed Mar 28, 2012
1 parent 930be36 commit dc5a29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/network/quantum/melange_ipam_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_tenant_id_by_net_id(self, context, net_id, vif_id, project_id):
for tid in tenant_ids:
try:
self.m_conn.get_allocated_ips(net_id, vif_id, tid)
except KeyError:
except Exception:
continue
ipam_tenant_id = tid
break
Expand Down

0 comments on commit dc5a29d

Please sign in to comment.