def lease_fixed_ip(self, context, address):
"""Called by dhcp-bridge when ip is leased.""" LOG.debug(_('Leased IP |%(address)s|'), locals(), context=context)
fixed_ip = self.db.fixed_ip_get_by_address(context, address)
if fixed_ip['instance_id'] is None:
raise exception.Error(_('IP %s leased that is not associated') % address)
.
.
.
I see that this was the exception raised. Can you be more specific regarding this exception to be changed to InstanceNotFoundException.
def lease_fixed_ ip(self, context, address):
LOG.debug( _('Leased IP |%(address)s|'), locals(), context=context) fixed_ip_ get_by_ address( context, address) 'instance_ id'] is None: Error(_ ('IP %s leased that is not associated') %
address) dException.
"""Called by dhcp-bridge when ip is leased."""
fixed_ip = self.db.
if fixed_ip[
raise exception.
.
.
.
I see that this was the exception raised. Can you be more specific regarding this exception to be changed to InstanceNotFoun