1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

B #5268: detach nic if prereconfigure fails (#2162)

This commit is contained in:
Alejandro Huertas Herrero 2022-06-20 12:48:17 +02:00 committed by GitHub
parent 0fb4ddaa4f
commit de5bc4be13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1057,7 +1057,14 @@ class ExecDriver < VirtualMachineDriver
steps << {
:driver => :vmm,
:action => :prereconfigure,
:parameters => [:deploy_id, target_device]
:parameters => [:deploy_id, target_device],
:fail_actions => [
{
:driver => :vmm,
:action => :detach_nic,
:parameters => [:deploy_id, mac]
}
]
}
if tm_command && !tm_command.empty?