From 4c892e2e9a2454dec4878a51201e5b2ae2f4ebb6 Mon Sep 17 00:00:00 2001 From: Shade Talabi Date: Thu, 10 Oct 2024 14:45:37 -0700 Subject: [PATCH] Fix OSPF area bug --- .../network/sonic/config/ospf_area/ospf_area.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/module_utils/network/sonic/config/ospf_area/ospf_area.py b/plugins/module_utils/network/sonic/config/ospf_area/ospf_area.py index 353ee6e2e..437387a8e 100644 --- a/plugins/module_utils/network/sonic/config/ospf_area/ospf_area.py +++ b/plugins/module_utils/network/sonic/config/ospf_area/ospf_area.py @@ -974,10 +974,11 @@ def build_area_stub_delete_requests(self, request_root, commands, have): # actually clearing stuff means deleting area # area having nothing related to stub also ends up in this case. requests will be empty. return True, requests, len(requests) > 0 - elif len(requests) > 0: - # clearing some of the settings in stub but not all - # commands has to be a subset of have and whatever in it is translated into requests - return False, requests, False + + # clearing some of the settings in stub but not all + # commands has to be a subset of have and whatever in it is translated into requests or + # there are no requests + return False, requests, False def build_area_delete_networks_requests(self, request_root, commands, have): if commands is None: