From 1f6600957799ff19d2630a5315126eb8d0d29039 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 17 Feb 2021 09:56:50 +0100 Subject: [PATCH] M #-: Add call to run_hooks in Elastic VNM driver --- src/vnm_mad/remotes/elastic/clean | 2 +- src/vnm_mad/remotes/elastic/post | 2 +- src/vnm_mad/remotes/elastic/pre | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vnm_mad/remotes/elastic/clean b/src/vnm_mad/remotes/elastic/clean index 85ca59a446..60517bfada 100755 --- a/src/vnm_mad/remotes/elastic/clean +++ b/src/vnm_mad/remotes/elastic/clean @@ -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) diff --git a/src/vnm_mad/remotes/elastic/post b/src/vnm_mad/remotes/elastic/post index 7f234640c4..227b02464e 100755 --- a/src/vnm_mad/remotes/elastic/post +++ b/src/vnm_mad/remotes/elastic/post @@ -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 diff --git a/src/vnm_mad/remotes/elastic/pre b/src/vnm_mad/remotes/elastic/pre index eff6fb2e69..2a6f1f74ef 100755 --- a/src/vnm_mad/remotes/elastic/pre +++ b/src/vnm_mad/remotes/elastic/pre @@ -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)