mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Co-authored-by: Jorge Lobo <jlobo@opennebula.systems> (cherry picked from commit 28d6a21eee59e193f9a220f4b6945464eba27f1f)
This commit is contained in:
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'))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user