1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-06 12:58:18 +03:00
Do not execute the elastic drivers post operation on snapshot-revert,
these operations are related to the hypervisor and not the VM.

(cherry picked from commit 60f00b49a356c603437ac09817c09bdb06bbcd5a)
This commit is contained in:
Ruben S. Montero 2023-09-25 17:47:58 +02:00
parent 1d4f0b4926
commit d4580646a4
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 5 additions and 1 deletions

View File

@ -833,6 +833,7 @@ class ExecDriver < VirtualMachineDriver
{
:driver => :vnm,
:action => :post,
:skip => ['elastic'],
:parameters => [:deploy_id, :host]
}
]

View File

@ -49,7 +49,8 @@ class VirtualNetworkDriver
def do_action(id, aname, ops = {})
options={
:stdin => nil,
:parameters => nil
:parameters => nil,
:skip => nil
}.merge(ops)
cmd_params = ''
@ -59,6 +60,8 @@ class VirtualNetworkDriver
infos = ''
@vnm_drivers.each do |subdirectory|
next if options[:skip] && options[:skip].include?(subdirectory)
cmd = action_command_line(aname, cmd_params, nil, subdirectory)
if action_is_local?(aname, subdirectory)