1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #575: bug in exec_and_log

This commit is contained in:
Javi Fontan 2011-05-05 18:09:22 +02:00
parent 795dc66059
commit 3c3b2e981e

View File

@ -94,7 +94,7 @@ function exec_and_log
if [ "x$code" != "x0" ]; then
log_error "Command \"$1\" failed."
log_error "$output"
if [ -n "$message" ]; then
if [ -z "$message" ]; then
error_message "$output"
else
error_message "$message"