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

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

This commit is contained in:
Daniel Clavijo Coca 2021-11-29 11:21:34 -06:00 committed by GitHub
parent e5c889607d
commit 93be1be5bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)