From 9afd53e6835389c8102e9e72234d81e8cc02d2f1 Mon Sep 17 00:00:00 2001 From: Nat Welch <nat@natwelch.com> Date: Tue, 12 Mar 2013 16:52:21 -0700 Subject: [PATCH] fixing another 1.8.7 bug. --- lib/fog/google/compute.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/google/compute.rb b/lib/fog/google/compute.rb index 84ea33da7..9b670f21c 100644 --- a/lib/fog/google/compute.rb +++ b/lib/fog/google/compute.rb @@ -83,7 +83,7 @@ module Fog :application_name => "fog", :application_version => Fog::VERSION, }) - @client.authorization = Signet::OAuth2::Client.new( + @client.authorization = Signet::OAuth2::Client.new({ :audience => 'https://accounts.google.com/o/oauth2/token', :auth_provider_x509_cert_url => "https://www.googleapis.com/oauth2/v1/certs", :client_x509_cert_url => "https://www.googleapis.com/robot/v1/metadata/x509/#{google_client_email}", @@ -91,7 +91,7 @@ module Fog :scope => api_scope_url, :signing_key => key, :token_credential_uri => 'https://accounts.google.com/o/oauth2/token', - ) + }) @client.authorization.fetch_access_token! @compute = @client.discovered_api('compute', api_version)