mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #575: run_probes now uses exec_and_log
This commit is contained in:
parent
f8a81bdd45
commit
6e90107d96
@ -16,6 +16,8 @@
|
||||
# limitations under the License. #
|
||||
#--------------------------------------------------------------------------- #
|
||||
|
||||
source $(dirname $0)/../scripts_common.sh
|
||||
|
||||
export LANG=C
|
||||
|
||||
HYPERVISOR_DIR=$1.d
|
||||
@ -29,12 +31,7 @@ function run_dir {
|
||||
cd $1
|
||||
for i in `ls *`;do
|
||||
if [ -x "$i" ]; then
|
||||
./$i $ARGUMENTS
|
||||
EXIT_CODE=$?
|
||||
if [ "x$EXIT_CODE" != "x0" ]; then
|
||||
echo "Error executing $i" 1>&2
|
||||
exit $EXIT_CODE
|
||||
fi
|
||||
exec_and_log "./$i $ARGUMENTS" "Error executing $i"
|
||||
fi
|
||||
done
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user