bin/onering in onering-client-0.0.45 vs bin/onering in onering-client-0.0.46

- old
+ new

@@ -234,10 +234,10 @@ call.opt :opts, '-o', '--option KEY:VALUE', Array, "A comma-separated list of key:value querystrings to pass with the request" call.exec do rv = api.request(call[:args].first.to_sym, { :method => (call[:method] || :get), - :data => (STDIN.tty? ? {} : ::MultiJson.load(STDIN.read)), + :data => (STDIN.tty? ? {} : ::MultiJson.load(STDIN.read) rescue {}), :fields => (Hash[call[:opts].collect{|i| i.split(':',2) }] rescue {}) }) print_format(rv, call[:format] || :json) unless rv.nil? or rv.to_s.strip.chomp.empty? end \ No newline at end of file