diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-25 11:55:41 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-25 11:55:41 +0200 |
commit | 52e73a3da8e99da9a0a973b6ef9934297bc6511e (patch) | |
tree | 57161949f6496dffdc1db3fff5a7558cc97d7f8c /lib | |
parent | baca9424a84b6a21363cac891cdef72f44c116b1 (diff) |
remove check for task status when code is 201 (after discussion with nina and fabian)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/task.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/task.rb b/lib/task.rb index 42d3d17..146a756 100644 --- a/lib/task.rb +++ b/lib/task.rb @@ -288,7 +288,8 @@ module OpenTox if @http_code == 202 raise "#{@uri}: illegal task state, code is 202, but hasStatus is not Running: '"+@metadata[OT.hasStatus]+"'" unless running? elsif @http_code == 201 - raise "#{@uri}: illegal task state, code is 201, but hasStatus is not Completed: '"+@metadata[OT.hasStatus]+"'" unless completed? + # ignore hasStatus + # raise "#{@uri}: illegal task state, code is 201, but hasStatus is not Completed: '"+@metadata[OT.hasStatus]+"'" unless completed? raise "#{@uri}: illegal task state, code is 201, resultURI is no task-URI: '"+@metadata[OT.resultURI].to_s+ "'" unless @metadata[OT.resultURI] and @metadata[OT.resultURI].to_s.uri? end |