Merge "Check subnet in "_remove_subnet_dhcp_options"" into stable/wallaby

This commit is contained in:
Zuul 2022-01-05 18:17:07 +00:00 committed by Gerrit Code Review
commit 7193059143
1 changed files with 1 additions and 1 deletions

View File

@ -1887,7 +1887,7 @@ class OVNClient(object):
dhcp_options = self._nb_idl.get_subnet_dhcp_options(
subnet_id, with_ports=True)
if dhcp_options['subnet'] is not None:
if dhcp_options['subnet']:
txn.add(self._nb_idl.delete_dhcp_options(
dhcp_options['subnet']['uuid']))