mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #2533 from kbockmanrs/gce_image_scope
[google|compute] auth needs additional scope to insert images into GCS
This commit is contained in:
commit
b76f85fee3
1 changed files with 3 additions and 1 deletions
|
@ -844,7 +844,9 @@ module Fog
|
|||
|
||||
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]
|
||||
|
|
Loading…
Reference in a new issue