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

B OpenNebula/one#5521: Fix lxd reboot arguments (#1424)

(cherry picked from commit 9efe7cdd2ce507197528d851d66634bcca996a83)
This commit is contained in:
Daniel Clavijo Coca 2021-09-02 10:45:07 -05:00 committed by Ruben S. Montero
parent d39723536a
commit 4fcabf8f42
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 6 additions and 4 deletions

View File

@ -1240,12 +1240,12 @@ class ExecDriver < VirtualMachineDriver
{
:driver => :vnm,
:action => :post,
:parameters => [:deploy_info],
:parameters => [:deploy_id],
:fail_actions => [
{
:driver => :vmm,
:action => :cancel,
:parameters => [:deploy_info, :host]
:parameters => [:deploy_id, :host]
}
]
}

View File

@ -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)