diff --git a/src/vnm_mad/remotes/802.1Q/clean b/src/vnm_mad/remotes/802.1Q/clean index f373640edad..5725cfb6baa 100755 --- a/src/vnm_mad/remotes/802.1Q/clean +++ b/src/vnm_mad/remotes/802.1Q/clean @@ -32,7 +32,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/802.1Q/post b/src/vnm_mad/remotes/802.1Q/post index ed550c17616..b3c95d19409 100755 --- a/src/vnm_mad/remotes/802.1Q/post +++ b/src/vnm_mad/remotes/802.1Q/post @@ -29,7 +29,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.activate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.activate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/802.1Q/pre b/src/vnm_mad/remotes/802.1Q/pre index 12c96b4739a..8d0fa130fb4 100755 --- a/src/vnm_mad/remotes/802.1Q/pre +++ b/src/vnm_mad/remotes/802.1Q/pre @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = VLANTagDriver::XPATH_FILTER hm = VLANTagDriver.from_base64(template64, xpath_filter, deploy_id) -exit hm.run_hooks(ARGV, template64) if hm.activate.zero? +exit hm.run_hooks(ARGV, template64) if hm.activate == 0 diff --git a/src/vnm_mad/remotes/bridge/clean b/src/vnm_mad/remotes/bridge/clean index e5079fab158..3c2efa07aa7 100755 --- a/src/vnm_mad/remotes/bridge/clean +++ b/src/vnm_mad/remotes/bridge/clean @@ -27,7 +27,7 @@ xpath_filter = "TEMPLATE/NIC[VN_MAD='bridge']" begin hm = VNMMAD::NoVLANDriver.from_base64(template64, xpath_filter, deploy_id) - hm.run_hooks(ARGV, template64) if hm.deactivate.zero? + hm.run_hooks(ARGV, template64) if hm.deactivate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/bridge/pre b/src/vnm_mad/remotes/bridge/pre index 8af47bb1a0e..89536c17b3e 100755 --- a/src/vnm_mad/remotes/bridge/pre +++ b/src/vnm_mad/remotes/bridge/pre @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = "TEMPLATE/NIC[VN_MAD='bridge']" hm = VNMMAD::NoVLANDriver.from_base64(template64, xpath_filter, deploy_id) -exit hm.run_hooks(ARGV, template64) if hm.activate.zero? +exit hm.run_hooks(ARGV, template64) if hm.activate == 0 diff --git a/src/vnm_mad/remotes/ebtables/clean b/src/vnm_mad/remotes/ebtables/clean index 83656bbc197..3932355e1b8 100755 --- a/src/vnm_mad/remotes/ebtables/clean +++ b/src/vnm_mad/remotes/ebtables/clean @@ -32,7 +32,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/ebtables/post b/src/vnm_mad/remotes/ebtables/post index 99a7d61c5de..17262abf44f 100755 --- a/src/vnm_mad/remotes/ebtables/post +++ b/src/vnm_mad/remotes/ebtables/post @@ -32,7 +32,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.activate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.activate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/ebtables/pre b/src/vnm_mad/remotes/ebtables/pre index d48d38909c8..0a594af801d 100755 --- a/src/vnm_mad/remotes/ebtables/pre +++ b/src/vnm_mad/remotes/ebtables/pre @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = EbtablesVLAN::XPATH_FILTER onevlan = EbtablesVLAN.from_base64(template64, xpath_filter, deploy_id) -onevlan.run_hooks(ARGV, template64) if onevlan.activate.zero? +onevlan.run_hooks(ARGV, template64) if onevlan.activate == 0 diff --git a/src/vnm_mad/remotes/fw/clean b/src/vnm_mad/remotes/fw/clean index 7814099a4e8..a01f720bb32 100755 --- a/src/vnm_mad/remotes/fw/clean +++ b/src/vnm_mad/remotes/fw/clean @@ -32,7 +32,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/fw/post b/src/vnm_mad/remotes/fw/post index 93298d56b0a..89c2a8119dc 100755 --- a/src/vnm_mad/remotes/fw/post +++ b/src/vnm_mad/remotes/fw/post @@ -29,7 +29,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.activate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.activate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/fw/pre b/src/vnm_mad/remotes/fw/pre index 9b936722a1e..cfdca956edd 100755 --- a/src/vnm_mad/remotes/fw/pre +++ b/src/vnm_mad/remotes/fw/pre @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = "TEMPLATE/NIC[VN_MAD='fw']" hm = VNMMAD::NoVLANDriver.from_base64(template64, xpath_filter, deploy_id) -exit hm.run_hooks(ARGV, template64) if hm.activate.zero? +exit hm.run_hooks(ARGV, template64) if hm.activate == 0 diff --git a/src/vnm_mad/remotes/ovswitch/clean b/src/vnm_mad/remotes/ovswitch/clean index 9964f2a181f..372bcdb3e7e 100755 --- a/src/vnm_mad/remotes/ovswitch/clean +++ b/src/vnm_mad/remotes/ovswitch/clean @@ -26,4 +26,4 @@ deploy_id = nil xpath_filter = OpenvSwitchVLAN::XPATH_FILTER ovs = OpenvSwitchVLAN.from_base64(template64, xpath_filter, deploy_id) -ovs.run_hooks(ARGV, template64) if ovs.deactivate.zero? +ovs.run_hooks(ARGV, template64) if ovs.deactivate == 0 diff --git a/src/vnm_mad/remotes/ovswitch/post b/src/vnm_mad/remotes/ovswitch/post index 0282bf9a279..7a1f11b0724 100755 --- a/src/vnm_mad/remotes/ovswitch/post +++ b/src/vnm_mad/remotes/ovswitch/post @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = OpenvSwitchVLAN::XPATH_FILTER ovs = OpenvSwitchVLAN.from_base64(template64, xpath_filter, deploy_id) -ovs.run_hooks(ARGV, template64) if ovs.activate.zero? +ovs.run_hooks(ARGV, template64) if ovs.activate == 0 diff --git a/src/vnm_mad/remotes/ovswitch/pre b/src/vnm_mad/remotes/ovswitch/pre index aad5715c60e..97024eb24ad 100755 --- a/src/vnm_mad/remotes/ovswitch/pre +++ b/src/vnm_mad/remotes/ovswitch/pre @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = OpenvSwitchVLAN::XPATH_FILTER ovs = OpenvSwitchVLAN.from_base64(template64, xpath_filter, deploy_id) -ovs.run_hooks(ARGV, template64) if ovs.activate.zero? \ No newline at end of file +ovs.run_hooks(ARGV, template64) if ovs.activate == 0 \ No newline at end of file diff --git a/src/vnm_mad/remotes/ovswitch_vxlan/clean b/src/vnm_mad/remotes/ovswitch_vxlan/clean index d16c30e74cd..48bbaff1f39 100755 --- a/src/vnm_mad/remotes/ovswitch_vxlan/clean +++ b/src/vnm_mad/remotes/ovswitch_vxlan/clean @@ -26,4 +26,4 @@ deploy_id = nil xpath_filter = OpenvSwitchVXLAN::XPATH_FILTER ovs = OpenvSwitchVXLAN.from_base64(template64, xpath_filter, deploy_id) -ovs.run_hooks(ARGV, template64) if ovs.deactivate.zero? +ovs.run_hooks(ARGV, template64) if ovs.deactivate == 0 diff --git a/src/vnm_mad/remotes/vxlan/clean b/src/vnm_mad/remotes/vxlan/clean index 3929b1e43ec..edd15a66472 100755 --- a/src/vnm_mad/remotes/vxlan/clean +++ b/src/vnm_mad/remotes/vxlan/clean @@ -33,7 +33,7 @@ begin xpath_filter, deploy_id) filter_driver.deactivate - filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/vxlan/post b/src/vnm_mad/remotes/vxlan/post index 2582782c51f..af79131b121 100755 --- a/src/vnm_mad/remotes/vxlan/post +++ b/src/vnm_mad/remotes/vxlan/post @@ -29,7 +29,7 @@ begin filter_driver = VNMMAD::VNMDriver.filter_driver(template64, xpath_filter, deploy_id) - filter_driver.run_hooks(ARGV, template64) if filter_driver.activate.zero? + filter_driver.run_hooks(ARGV, template64) if filter_driver.activate == 0 rescue Exception => e OpenNebula.log_error(e.message) OpenNebula.log_error(e.backtrace) diff --git a/src/vnm_mad/remotes/vxlan/pre b/src/vnm_mad/remotes/vxlan/pre index 48f072447ba..47701ad9f69 100755 --- a/src/vnm_mad/remotes/vxlan/pre +++ b/src/vnm_mad/remotes/vxlan/pre @@ -26,4 +26,4 @@ deploy_id = ARGV[0] xpath_filter = VXLANDriver::XPATH_FILTER hm = VXLANDriver.from_base64(template64, xpath_filter, deploy_id) -exit hm.run_hooks(ARGV, template64) if hm.activate.zero? +exit hm.run_hooks(ARGV, template64) if hm.activate == 0