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

(cherry picked from commit 93be1be5bb)
This commit is contained in:
Daniel Clavijo Coca authored and Ruben S. Montero committed 2021-11-29 18:22:07 +01:00
1 parent 3200326904
commit 0ad85efe1e
1 file changed
+5 -2
+5 -2
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)