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

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


The following commit(s) were added to refs/heads/DLAB-1539 by this push:
     new ccdb2f6  [DLAB-1539]: removed prints from get_index... function in gcp 
meta_lib
ccdb2f6 is described below

commit ccdb2f61ecbcdf2a1593d1410e8e30910736ede3
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Mar 2 15:30:27 2020 +0200

    [DLAB-1539]: removed prints from get_index... function in gcp meta_lib
---
 infrastructure-provisioning/src/general/lib/gcp/meta_lib.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py 
b/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
index 2cc6197..1cc24b8 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
@@ -255,10 +255,6 @@ class GCPMeta:
                     if service_account['displayName'] == service_account_name:
                         service_account_email = service_account['email']
                         response = 
service_account_email[:service_account_email.find('@')][-5:]
-                if response == '':
-                    print("No service account with " + service_account_name + 
" display name.")
-                else:
-                    print("Service account " + service_account_name + " has " 
+ response + " index.")
                 return response
             else:
                 print("No service accounts list received.")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to