summaryrefslogtreecommitdiff
path: root/lib/google_api
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-01-10 15:23:22 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-01-10 15:23:22 +0100
commitcf6258af41cee0638665560509c87bb49135081d (patch)
tree87f1c1f9ba9ad57573eb6805ae5e98fbc4552939 /lib/google_api
parentb44583e9c6a00c689be398fee54b24a6dab019a6 (diff)
downloadgitlab-ce-cf6258af41cee0638665560509c87bb49135081d.tar.gz
Fix billing checking
Diffstat (limited to 'lib/google_api')
-rw-r--r--lib/google_api/cloud_platform/client.rb4
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 f05d001fd02..a9bea218692 100644
--- a/lib/google_api/cloud_platform/client.rb
+++ b/lib/google_api/cloud_platform/client.rb
@@ -51,11 +51,11 @@ module GoogleApi
end
end
- def projects_get_billing_info(project_name)
+ def projects_get_billing_info(project_id)
service = Google::Apis::CloudbillingV1::CloudbillingService.new
service.authorization = access_token
- service.get_project_billing_info("projects/#{project_name}")
+ service.get_project_billing_info("projects/#{project_id}")
end
def projects_zones_clusters_get(project_id, zone, cluster_id)