lib/splash/orchestrator.rb in prometheus-splash-0.2.0 vs lib/splash/orchestrator.rb in prometheus-splash-0.3.0

- old
+ new

@@ -1,8 +1,10 @@ # coding: utf-8 Dir[File.dirname(__FILE__) + '/orchestrator/*.rb'].each {|file| require file } + + module Splash module Orchestrator class Scheduler include Splash::Constants @@ -75,10 +77,10 @@ def execute(options) command = Splash::CommandWrapper::new(options[:command]) if options[:ack] then command.ack else - command.call_and_notify trace: true, notify: true, callback: true + return command.call_and_notify trace: true, notify: true, callback: true end end end