Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
xincunli-sonic committed Jan 24, 2025
1 parent 16461f1 commit 79d1721
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
from collections import OrderedDict
from generic_config_updater.generic_updater import GenericUpdater, ConfigFormat, extract_scope
from generic_config_updater.gu_common import HOST_NAMESPACE, GenericConfigUpdaterError
from minigraph import parse_device_desc_xml, minigraph_encoder, parse_asic_sub_role, \
parse_asic_switch_type, parse_hostname
from minigraph import parse_device_desc_xml, minigraph_encoder
from natsort import natsorted
from portconfig import get_child_ports
from socket import AF_INET, AF_INET6
Expand Down
4 changes: 2 additions & 2 deletions tests/config_override_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ def read_json_file_side_effect(filename):

# Save original sysinfo in dict, compare later to see if it is override
orig_sysinfo = {}
for ns, config_db in cfgdb_clients.items():
for ns, config_db in cfgdb_clients.items():
platform = config_db.get_config()['DEVICE_METADATA']['localhost'].get('platform')
mac = config_db.get_config()['DEVICE_METADATA']['localhost'].get('mac')
mac = config_db.get_config()['DEVICE_METADATA']['localhost'].get('mac')
orig_sysinfo[ns] = {}
orig_sysinfo[ns]['platform'] = platform
orig_sysinfo[ns]['mac'] = mac
Expand Down

0 comments on commit 79d1721

Please sign in to comment.