mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
B OpenNebula/one#5652 Log error (#1625)
(cherry picked from commit 93be1be5bb)
This commit is contained in:
1 parent
3200326904
commit
0ad85efe1e
1 file changed
+5
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user