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:
parent
e5c889607d
commit
93be1be5bb
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user