We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d72f672 commit 3e448beCopy full SHA for 3e448be
1 file changed
scripts/generate_dump
@@ -2201,13 +2201,7 @@ save_log_files() {
2201
# 0 if BMC is supported, 1 otherwise
2202
###############################################################################
2203
is_bmc_supported() {
2204
- local platform=$(python3 -c "from sonic_py_common import device_info; print(device_info.get_platform())")
2205
- # Check if the required file exists
2206
- if [ ! -f /usr/share/sonic/device/$platform/bmc.json ]; then
2207
- return 1
2208
- else
2209
- return 0
2210
- fi
+ python3 -c "from sonic_py_common import device_info; import sys; sys.exit(0 if (device_info.is_switch_host() and device_info.get_bmc_data()) else 1)"
2211
}
2212
2213
0 commit comments