mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-06 12:58:18 +03:00
B OpenNebula/one#6319: Skip if elastic
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:
parent
1d4f0b4926
commit
d4580646a4
@ -833,6 +833,7 @@ class ExecDriver < VirtualMachineDriver
|
||||
{
|
||||
:driver => :vnm,
|
||||
:action => :post,
|
||||
:skip => ['elastic'],
|
||||
:parameters => [:deploy_id, :host]
|
||||
}
|
||||
]
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user