... | ... |
@@ -2354,6 +2354,10 @@ function time_stop { |
2354 | 2354 |
} |
2355 | 2355 |
|
2356 | 2356 |
function oscwrap { |
2357 |
+ local xtrace |
|
2358 |
+ xtrace=$(set +o | grep xtrace) |
|
2359 |
+ set +o xtrace |
|
2360 |
+ |
|
2357 | 2361 |
local out |
2358 | 2362 |
local rc |
2359 | 2363 |
local start |
... | ... |
@@ -2368,6 +2372,7 @@ function oscwrap { |
2368 | 2368 |
echo $((end - start)) >> $OSCWRAP_TIMER_FILE |
2369 | 2369 |
|
2370 | 2370 |
echo "$out" |
2371 |
+ $xtrace |
|
2371 | 2372 |
return $rc |
2372 | 2373 |
} |
2373 | 2374 |
|
... | ... |
@@ -1472,7 +1472,10 @@ fi |
1472 | 1472 |
# =============== |
1473 | 1473 |
|
1474 | 1474 |
# 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 |
|
1476 | 1479 |
|
1477 | 1480 |
# If cinder is configured, set global_filter for PV devices |
1478 | 1481 |
if is_service_enabled cinder; then |