Permalink
Browse files

use JSON.parse for parsing

  • Loading branch information...
1 parent acccac7 commit 5695e36057734212041e8a0c4bac7eaf954c21ac @ddollar ddollar committed Mar 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/taps/operation.rb
View
@@ -343,7 +343,7 @@ def fetch_remote_tables_info
retries = 0
max_retries = 10
begin
- tables = JSON.load(session_resource['pull/table_names'].get(http_headers).to_s)
+ tables = JSON.parse(session_resource['pull/table_names'].get(http_headers).to_s)
rescue RestClient::Exception
retries += 1
retry if retries <= max_retries

0 comments on commit 5695e36

Please sign in to comment.