Skip to content

Commit

Permalink
Fix key error when checking for UTILITIES_UNIT_TESTING env var (#3563)
Browse files Browse the repository at this point in the history
  • Loading branch information
arista-hpandya authored Oct 7, 2024
1 parent 008a078 commit 72d1faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def dump_config_to_json(self, table_name, namespace):
This function dumps the current config in a JSON file for unit testing.
"""
# Only dump files in unit testing mode
if os.environ["UTILITIES_UNIT_TESTING"] != "2":
if os.getenv("UTILITIES_UNIT_TESTING") != "2":
return

if namespace not in self.updated_port_tables.keys():
Expand Down

0 comments on commit 72d1faa

Please sign in to comment.