lib/splunk-sdk-ruby/entity/job.rb in splunk-sdk-ruby-1.0.2 vs lib/splunk-sdk-ruby/entity/job.rb in splunk-sdk-ruby-1.0.3

- old
+ new

@@ -165,10 +165,14 @@ # Returns: +true+ or +false+. # def is_ready?() begin refresh() - return true + if @state["content"]["dispatchState"] == "QUEUED" || @state["content"]["dispatchState"] == "PARSING" + return false + else + return true + end rescue EntityNotReady return false end end