From 3456afdea7993f128149332f90edb0b90f467ea2 Mon Sep 17 00:00:00 2001 From: Kristian Hartikainen Date: Thu, 11 Jul 2019 13:03:51 -0700 Subject: [PATCH] [autoscaler] Fix missing body argument in GCP `getIamPolicy` #5169 --- python/ray/autoscaler/gcp/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ray/autoscaler/gcp/config.py b/python/ray/autoscaler/gcp/config.py index d165fb8b7..ba5026700 100644 --- a/python/ray/autoscaler/gcp/config.py +++ b/python/ray/autoscaler/gcp/config.py @@ -383,7 +383,8 @@ def _add_iam_policy_binding(service_account, roles): email = service_account["email"] member_id = "serviceAccount:" + email - policy = crm.projects().getIamPolicy(resource=project_id).execute() + policy = crm.projects().getIamPolicy( + resource=project_id, body={}).execute() already_configured = True