Add support of chip_mdns without default value (#7420)
diff --git a/scripts/build_python.sh b/scripts/build_python.sh
index 2df9e43..e1a29a3 100755
--- a/scripts/build_python.sh
+++ b/scripts/build_python.sh
@@ -39,7 +39,7 @@
ENVIRONMENT_ROOT="$CHIP_ROOT/out/python_env"
declare chip_detail_logging=false
-declare chip_mdns="minimal"
+declare chip_mdns
declare clusters=true
help() {
@@ -94,7 +94,8 @@
source "$CHIP_ROOT/scripts/activate.sh"
# Generates ninja files
-gn --root="$CHIP_ROOT" gen "$OUTPUT_ROOT" --args="chip_detail_logging=$chip_detail_logging chip_mdns=\"$chip_mdns\" chip_use_clusters_for_ip_commissioning=$clusters"
+[[ -n "$chip_mdns" ]] && chip_mdns_arg="chip_mdns=\"$chip_mdns\"" || chip_mdns_arg=""
+gn --root="$CHIP_ROOT" gen "$OUTPUT_ROOT" --args="chip_detail_logging=$chip_detail_logging chip_use_clusters_for_ip_commissioning=$clusters $chip_mdns_arg"
# Compiles python files
ninja -C "$OUTPUT_ROOT" python