Skip to content

Commit

Permalink
M #-: Lint fw driver actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmontero committed Jan 11, 2025
1 parent 753d6ec commit 35a3e15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/vnm_mad/remotes/fw/clean
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #

$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
$LOAD_PATH << File.dirname(__FILE__)
$LOAD_PATH << File.join(File.dirname(__FILE__), '..')

require 'vnmmad'

Expand All @@ -33,7 +33,7 @@ begin
xpath_filter,
deploy_id)
filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate == 0
rescue StandardError
rescue StandardError => e
OpenNebula.log_error(e.message)
OpenNebula.log_error(e.backtrace)
exit 1
Expand Down
6 changes: 3 additions & 3 deletions src/vnm_mad/remotes/fw/post
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #

$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
$LOAD_PATH << File.dirname(__FILE__)
$LOAD_PATH << File.join(File.dirname(__FILE__), '..')

require 'vnmmad'

Expand All @@ -32,7 +32,7 @@ begin
filter_driver.activate_vf(filter_driver.vm)

filter_driver.run_hooks(ARGV, template64) if filter_driver.activate == 0
rescue Exception => e
rescue StandardError => e
OpenNebula.log_error(e.message)
OpenNebula.log_error(e.backtrace)
exit 1
Expand Down
4 changes: 2 additions & 2 deletions src/vnm_mad/remotes/fw/pre
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #

$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
$LOAD_PATH << File.dirname(__FILE__)
$LOAD_PATH << File.join(File.dirname(__FILE__), '..')

require 'vnmmad'

Expand Down

0 comments on commit 35a3e15

Please sign in to comment.