diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-09-07 16:23:45 +1200 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-09-14 16:26:51 +1200 |
commit | 2e47e1f80e000fb717f89effef983bf22c9e2f4d (patch) | |
tree | b926b4c3656ba3b7d5ce2d82001d94f48d7ed541 /lib | |
parent | ab6d74da9a31095c17ee4f7fedc0f27a37dde3c1 (diff) | |
download | gitlab-ce-2e47e1f80e000fb717f89effef983bf22c9e2f4d.tar.gz |
Teach GoogleApi::CloudPlatform::Client#projects_zones_clusters_create about legacy_abac argument
Fix spec warning: removing `initialize' may cause serious problems
Actually verify that `service.create_cluster` is called with expected
request_body and other args
Diffstat (limited to 'lib')
-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 36859b4d025..77b6610286f 100644 --- a/lib/google_api/cloud_platform/client.rb +++ b/lib/google_api/cloud_platform/client.rb @@ -50,7 +50,7 @@ module GoogleApi service.get_zone_cluster(project_id, zone, cluster_id, options: user_agent_header) end - def projects_zones_clusters_create(project_id, zone, cluster_name, cluster_size, machine_type:) + def projects_zones_clusters_create(project_id, zone, cluster_name, cluster_size, machine_type:, legacy_abac:) service = Google::Apis::ContainerV1::ContainerService.new service.authorization = access_token @@ -63,7 +63,7 @@ module GoogleApi "machine_type": machine_type }, "legacy_abac": { - "enabled": true + "enabled": legacy_abac } } } |