Merge "Persist updated expiration time"
This commit is contained in:
commit
d19056cc4b
@ -394,8 +394,9 @@ class QuantumDbPluginV2(quantum_plugin_base_v2.QuantumPluginBaseV2):
|
|||||||
query = query.filter_by(network_id=network_id, ip_address=ip_address)
|
query = query.filter_by(network_id=network_id, ip_address=ip_address)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fixed_ip = query.one()
|
with context.session.begin(subtransactions=True):
|
||||||
fixed_ip.expiration = expiration
|
fixed_ip = query.one()
|
||||||
|
fixed_ip.expiration = expiration
|
||||||
except exc.NoResultFound:
|
except exc.NoResultFound:
|
||||||
LOG.debug(_("No fixed IP found that matches the network "
|
LOG.debug(_("No fixed IP found that matches the network "
|
||||||
"%(network_id)s and ip address %(ip_address)s."),
|
"%(network_id)s and ip address %(ip_address)s."),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user