From 7fb07a9a6983d4a48da2bd2c2e456707b420efe8 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 15 Sep 2015 11:29:47 -0700 Subject: [PATCH] Properly parse response body in token delete --- lib/vmfloaty/auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmfloaty/auth.rb b/lib/vmfloaty/auth.rb index 54224b3..4816e04 100644 --- a/lib/vmfloaty/auth.rb +++ b/lib/vmfloaty/auth.rb @@ -27,7 +27,7 @@ class Auth conn = Http.get_conn_with_auth(verbose, url, user, password) response = conn.delete "/token/#{token}" - res_body = JSON.parse(response) + res_body = JSON.parse(response.body) if res_body["ok"] puts res_body else