Skip to content

Commit 7d2663d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "oscwrap: make a little quieter"
2 parents 9166593 + 474f535 commit 7d2663d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

functions-common

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,10 @@ function time_stop {
23542354
}
23552355

23562356
function 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

stack.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
14781481
if is_service_enabled cinder; then

0 commit comments

Comments
 (0)