From f520495a360a9d2fbcde2e1a10b0fe3970aa4228 Mon Sep 17 00:00:00 2001 From: kbockmanrs Date: Tue, 31 Dec 2013 22:15:28 +0000 Subject: [PATCH] [google][compute] auth needs additional scope to insert images --- lib/fog/google/compute.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/google/compute.rb b/lib/fog/google/compute.rb index d625f90677..3e39d3de42 100644 --- a/lib/fog/google/compute.rb +++ b/lib/fog/google/compute.rb @@ -843,7 +843,9 @@ class Real def initialize(options) base_url = 'https://www.googleapis.com/compute/' - api_scope_url = 'https://www.googleapis.com/auth/compute' + # The devstorage scope is needed to be able to insert images + # devstorage.read_only scope is not sufficient like you'd hope + api_scope_url = 'https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/devstorage.read_write' shared_initialize(options) google_client_email = options[:google_client_email]