1
0
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:
Ruben S. Montero 2021-02-17 09:56:50 +01:00
parent 52b2f29bc6
commit 1f66009577
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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