File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2354,6 +2354,10 @@ function time_stop {
23542354}
23552355
23562356function oscwrap {
2357+ local xtrace
2358+ xtrace=$( set +o | grep xtrace)
2359+ set +o xtrace
2360+
23572361 local out
23582362 local rc
23592363 local start
@@ -2368,6 +2372,7 @@ function oscwrap {
23682372 echo $(( end - start)) >> $OSCWRAP_TIMER_FILE
23692373
23702374 echo " $out "
2375+ $xtrace
23712376 return $rc
23722377}
23732378
Original file line number Diff line number Diff line change @@ -1472,7 +1472,10 @@ fi
14721472# ===============
14731473
14741474# Prepare bash completion for OSC
1475- openstack complete | sudo tee /etc/bash_completion.d/osc.bash_completion > /dev/null
1475+ # Note we use "command" to avoid the timing wrapper
1476+ # which isn't relevant here and floods logs
1477+ command openstack complete \
1478+ | sudo tee /etc/bash_completion.d/osc.bash_completion > /dev/null
14761479
14771480# If cinder is configured, set global_filter for PV devices
14781481if is_service_enabled cinder; then
You can’t perform that action at this time.
0 commit comments