lib/splash/daemon/orchestrator/grammar.rb in prometheus-splash-0.8.4 vs lib/splash/daemon/orchestrator/grammar.rb in prometheus-splash-0.8.5

- old
+ new

@@ -64,10 +64,10 @@ # execute_command verb : execute command specified in payload # @param [Hash] content message content Hash Structure, include mandatory payload[:name] # @return [Hash] Exiter case def execute_command(content) payload = content[:payload] - unless get_config.commands.include? payload[:name].to_sym + unless get_config.commands.select {|cmd| cmd[:name] == payload[:name].to_sym}.count > 0 then @log.item "Command not found", content[:session] return { :case => :not_found } end if payload.include? :schedule then sched,value = payload[:schedule].flatten