mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
M #-: Add call to run_hooks in Elastic VNM driver
This commit is contained in:
parent
52b2f29bc6
commit
1f66009577
@ -49,7 +49,7 @@ begin
|
||||
|
||||
drv.unassign
|
||||
|
||||
drv.deactivate
|
||||
drv.run_hooks(ARGV, template64) if drv.deactivate == 0
|
||||
rescue StandardError => e
|
||||
OpenNebula.log_error(e.message)
|
||||
OpenNebula.log_error(e.backtrace)
|
||||
|
@ -52,7 +52,7 @@ begin
|
||||
exit 1 if drv.assign
|
||||
|
||||
begin
|
||||
drv.activate
|
||||
drv.run_hooks(ARGV, template64) if drv.activate == 0
|
||||
rescue StandardError => e
|
||||
drv.unassign # rollback assign
|
||||
raise e
|
||||
|
@ -50,6 +50,8 @@ begin
|
||||
deploy_id)
|
||||
|
||||
drv.create_bridges
|
||||
|
||||
drv.run_hooks(ARGV, template64)
|
||||
rescue StandardError => e
|
||||
OpenNebula.log_error(e.message)
|
||||
OpenNebula.log_error(e.backtrace)
|
||||
|
Loading…
Reference in New Issue
Block a user