Skip to content

Commit d26601f

Browse files
committed
Fix comment
Signed-off-by: Ze Gan <[email protected]>
1 parent b309999 commit d26601f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dockers/docker-database/database_config.json.j2

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"hostname" : "{{HOST_IP}}",
55
"port" : {{REDIS_PORT}},
66
"unix_socket_path" : "/var/run/redis{{DEV}}/redis.sock",
7-
"persistence_for_warm_boot" : "yes",
8-
"database_type": "{{DATABASE_TYPE}}"
7+
"persistence_for_warm_boot" : "yes"
8+
{% if DATABASE_TYPE is defined and DATABASE_TYPE != "" %}
9+
,"database_type": "{{DATABASE_TYPE}}"
10+
{% endif %}
911
},
1012
"redis_chassis":{
1113
"hostname" : "redis_chassis.server",

src/sonic-py-common/sonic_py_common/device_info.py

+2
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ def is_frontend_port_present_in_host():
847847

848848

849849
def get_num_dpus():
850+
# Todo: we should use platform api to get the dpu number
851+
# instead of rely on the platform env config.
850852
num_dpus = 0
851853
platform_env_conf_file_path = get_platform_env_conf_file_path()
852854

0 commit comments

Comments
 (0)