Skip to content

Commit 8f6c198

Browse files
committed
Declare local var and set value seperately
1 parent 309b6ed commit 8f6c198

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/shared.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ function run_docker_compose() {
292292

293293
command+=(-p "$(docker_compose_project_name)")
294294

295-
local disable_otel_config="$(plugin_read_config DISABLE_HOST_OTEL_TRACING "false")"
295+
local disable_otel_config
296+
disable_otel_config="$(plugin_read_config DISABLE_HOST_OTEL_TRACING "false")"
296297

297298
if [[ "$disable_otel_config" == "true" ]]; then
298299
# Disable docker-compose OTEL tracing by clearing environment variables

0 commit comments

Comments
 (0)