Skip to content

Commit

Permalink
Merge pull request #477 from tiiuae/fix_empty_white_list_handling
Browse files Browse the repository at this point in the history
Fix empty white_interfaces list handling
  • Loading branch information
saauvine authored Sep 11, 2024
2 parents b79adcf + e1efa8d commit 23fd965
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def __init__(
self.__create_vlan_interfaces()

if self.__cbma_config:
white_interfaces = self.__cbma_config.get("white_interfaces", [])
red_interfaces = self.__cbma_config.get("red_interfaces", [])
exclude_interfaces = self.__cbma_config.get("exclude_interfaces", [])
white_interfaces = self.__cbma_config.get("white_interfaces") or []
red_interfaces = self.__cbma_config.get("red_interfaces") or []
exclude_interfaces = self.__cbma_config.get("exclude_interfaces") or []
self.logger.info(f"White interfaces config: {white_interfaces}")
self.logger.info(f"Red interfaces config: {red_interfaces}")
self.logger.info(f"Exclude interfaces config: {exclude_interfaces}")
Expand Down

0 comments on commit 23fd965

Please sign in to comment.