lib/elasticity/job_flow.rb in elasticity-2.5.5 vs lib/elasticity/job_flow.rb in elasticity-2.5.6

- old
+ new

@@ -108,12 +108,9 @@ @jobflow_steps << jobflow_step end end def run - if @jobflow_steps.empty? - raise JobFlowMissingStepsError, 'Cannot run a job flow without adding steps. Please use #add_step.' - end if is_jobflow_running? raise JobFlowRunningError, 'Cannot run a job flow multiple times. To do more with this job flow, please use #add_step.' end @jobflow_id = emr.run_job_flow(jobflow_config) end \ No newline at end of file