mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
B OpenNebula/one#5521: Fix lxd reboot arguments (#1424)
(cherry picked from commit 9efe7cdd2ce507197528d851d66634bcca996a83)
This commit is contained in:
parent
9b19609540
commit
e9d32a0c1f
@ -1325,12 +1325,12 @@ class ExecDriver < VirtualMachineDriver
|
||||
{
|
||||
:driver => :vnm,
|
||||
:action => :post,
|
||||
:parameters => [:deploy_info, :host],
|
||||
:parameters => [:deploy_id, :host],
|
||||
:fail_actions => [
|
||||
{
|
||||
:driver => :vmm,
|
||||
:action => :cancel,
|
||||
:parameters => [:deploy_info, :host]
|
||||
:parameters => [:deploy_id, :host]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -118,10 +118,12 @@ module VNMMAD
|
||||
deploy_id = vm['DEPLOY_ID']
|
||||
end
|
||||
|
||||
return if !deploy_id || !vm.vm_info[:dumpxml].nil?
|
||||
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?
|
||||
|
||||
vm.vm_info[:dumpxml] = YAML.safe_load(config)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user