diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-11 02:29:36 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-01-11 02:29:36 +0100 |
commit | 1f0a4fe6a45a726e40adcb030ad3e1b4b8b9c75d (patch) | |
tree | 38d9d8f3b9a0f9487a014b212efe0d00d6be70ca /lib/google_api | |
parent | 8ba3e473a5a3e05f8b48350aff5108691cdff5d6 (diff) | |
download | gitlab-ce-1f0a4fe6a45a726e40adcb030ad3e1b4b8b9c75d.tar.gz |
Add missing user agent header to GCP client
Diffstat (limited to 'lib/google_api')
-rw-r--r-- | lib/google_api/cloud_platform/client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/google_api/cloud_platform/client.rb b/lib/google_api/cloud_platform/client.rb index a9bea218692..ff638c07755 100644 --- a/lib/google_api/cloud_platform/client.rb +++ b/lib/google_api/cloud_platform/client.rb @@ -47,7 +47,7 @@ module GoogleApi service.authorization = access_token service.fetch_all(items: :projects) do |token| - service.list_projects(page_token: token) + service.list_projects(page_token: token, options: user_agent_header) end end @@ -55,7 +55,7 @@ module GoogleApi service = Google::Apis::CloudbillingV1::CloudbillingService.new service.authorization = access_token - service.get_project_billing_info("projects/#{project_id}") + service.get_project_billing_info("projects/#{project_id}", options: user_agent_header) end def projects_zones_clusters_get(project_id, zone, cluster_id) |