lib/vra/client.rb in vmware-vra-1.5.1 vs lib/vra/client.rb in vmware-vra-1.5.2

- old
+ new

@@ -102,10 +102,10 @@ def generate_bearer_token @bearer_token.value = nil validate_client_options! - response = http_post('/identity/api/tokens', bearer_token_request_body.to_json, :skip_auth) + response = http_post('/identity/api/tokens', FFI_Yajl::Encoder.encode(bearer_token_request_body), :skip_auth) if response.code != 200 raise Vra::Exception::Unauthorized, "Unable to get bearer token: #{response.body}" end @bearer_token.value = FFI_Yajl::Parser.parse(response.body)['id']