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

B OpenNebula/one#5652 Log error (#1625)

(cherry picked from commit 93be1be5bb1826a66631fce25ceab2d09a4a8c50)
This commit is contained in:
Daniel Clavijo Coca 2021-11-29 11:21:34 -06:00 committed by Ruben S. Montero
parent 3200326904
commit 0ad85efe1e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -121,9 +121,12 @@ module VNMMAD
return if !deploy_id || !vm.vm_info[:dumpxml].nil? || deploy_id.empty?
cmd = "#{@lxc_cmd} config show #{deploy_id}"
config, _e, s = Open3.capture3(cmd)
config, e, s = Open3.capture3(cmd)
return unless s.exitstatus.zero?
if !s.exitstatus.zero?
OpenNebula.log_error "#{e}\n#{config}"
return
end
vm.vm_info[:dumpxml] = YAML.safe_load(config)