Add non-verbose output mode
Set VERBOSE=False to turn off the noise of stack.sh output. All
output still is written to the logfile if LOGFILE is set.
Rebased
Change-Id: I316bc4d68c997ec907a48e720e2f7778428d935b
diff --git a/lib/cinder b/lib/cinder
index 250c029..de2debc 100644
--- a/lib/cinder
+++ b/lib/cinder
@@ -16,9 +16,9 @@
# stop_XXX
# cleanup_XXX
-# Print the commands being run so that we can see the command that triggers
-# an error. It is also useful for following along as the install occurs.
-set -o xtrace
+# Save trace setting
+XTRACE=$(set +o | grep xtrace)
+set +o xtrace
# Defaults
@@ -233,3 +233,6 @@
stop_service tgt
fi
}
+
+# Restore xtrace
+$XTRACE