Merge "Check subnet in "_remove_subnet_dhcp_options"" into stable/wallaby
This commit is contained in:
commit
7193059143
|
@ -1887,7 +1887,7 @@ class OVNClient(object):
|
||||||
dhcp_options = self._nb_idl.get_subnet_dhcp_options(
|
dhcp_options = self._nb_idl.get_subnet_dhcp_options(
|
||||||
subnet_id, with_ports=True)
|
subnet_id, with_ports=True)
|
||||||
|
|
||||||
if dhcp_options['subnet'] is not None:
|
if dhcp_options['subnet']:
|
||||||
txn.add(self._nb_idl.delete_dhcp_options(
|
txn.add(self._nb_idl.delete_dhcp_options(
|
||||||
dhcp_options['subnet']['uuid']))
|
dhcp_options['subnet']['uuid']))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue