This is an automated email from the ASF dual-hosted git repository.

mykolabodnar pushed a commit to branch DLAB-1379
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1379 by this push:
     new f402cc2  [DLAB-1379] - SSN creation fixed
f402cc2 is described below

commit f402cc2ccd52182389a0505937c3ffba792df414
Author: Mykola_Bodnar1 <bodnarmyk...@gmail.com>
AuthorDate: Mon Dec 16 15:25:25 2019 +0200

    [DLAB-1379] - SSN creation fixed
---
 infrastructure-provisioning/src/general/lib/gcp/actions_lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py 
b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
index 0910b71..8779f18 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
@@ -554,7 +554,7 @@ class GCPActions:
 
     def set_role_to_service_account(self, service_account_name, role_name, 
role_type='custom'):
         resource = "projects/{}/serviceAccounts/{}".format(self.project, 
service_account_name)
-        request = 
GCPActions().service_resource.projects().serviceAccounts().getIamPolicy(resource=resource,
 body={})
+        request = 
GCPActions().service_resource.projects().serviceAccounts().getIamPolicy(resource=resource)
         serviceAccounts_policy = request.execute()
         service_account_email = 
"{}@{}.iam.gserviceaccount.com".format(service_account_name, self.project)
         params = {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org

Reply via email to