lib/right_chimp/resources/Task.rb in right_chimp-2.1.25.2 vs lib/right_chimp/resources/Task.rb in right_chimp-2.1.26

- old
+ new

@@ -11,14 +11,14 @@ attr_reader :tasker def wait_for_state(desired_state, timeout=900) while(timeout > 0) state=self.tasker.show.summary - return true if self.state.match(desired_state) + return true if self.state.match(desired_state) friendly_url = Connection.audit_url + '/audit_entries/' friendly_url += self.href.split(/\//).last friendly_url = friendly_url.gsub('ae-', '') - raise "FATAL error, #{tasker.show.summary}\n\n Audit: #{friendly_url}'\n " if self.state.match("failed") + raise "FATAL error, #{tasker.show.summary}\n\n Audit: #{friendly_url}\n " if self.state.match("failed") sleep 30 timeout -= 30 end raise "FATAL: Timeout waiting for Executable to complete. State was #{self.state}" if timeout <= 0 end