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

B : fix condition error ()

Co-authored-by: Jorge Lobo <jlobo@opennebula.systems>
(cherry picked from commit 28d6a21eee59e193f9a220f4b6945464eba27f1f)
This commit is contained in:
Jorge Miguel Lobo Escalona 2021-06-17 11:44:25 +02:00 committed by Tino Vazquez
parent 7cc518c9a6
commit 92db7cc4a8

@ -297,8 +297,7 @@ const executeCommand = (command = '', resource = '', options = {}) => {
if (execute) {
if (execute.stdout) {
rtn = { success: true, data: execute.stdout.toString() }
}
if (execute.stderr && execute.stderr.length > 0) {
} else if (execute.stderr && execute.stderr.length > 0) {
rtn = { success: false, data: execute.stderr.toString() }
messageTerminal(defaultError(execute.stderr.toString(), 'Error command: %s'))
}