This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch epm-v2.5.2.1
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/epm-v2.5.2.1 by this push:
new 7d3e75943 fixed service account parsing bug
7d3e75943 is described below
commit 7d3e75943c61c791e200f70dadd1dbec3875f261
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Oct 21 16:18:55 2022 +0300
fixed service account parsing bug
---
infrastructure-provisioning/src/general/lib/gcp/meta_lib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
b/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
index be5d17b0c..49e3613a5 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
@@ -274,7 +274,7 @@ class GCPMeta:
else:
next_page = False
for service_account in full_list_of_service_accounts:
- if service_account['displayName'] == service_account_name:
+ if 'displayName' in service_account and
service_account['displayName'] == service_account_name:
service_account_email = service_account['email']
response =
service_account_email[:service_account_email.find('@')][-5:]
return response
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]