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

lfrolov pushed a commit to branch DATALAB-2409
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 955933941cdecdb129318914dd946c71e4168245
Author: leonidfrolov <[email protected]>
AuthorDate: Wed Oct 13 12:50:52 2021 +0300

    [DATALAB-2409]: removed prints from configure_keycloak.py
---
 infrastructure-provisioning/src/base/scripts/configure_keycloak.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/infrastructure-provisioning/src/base/scripts/configure_keycloak.py 
b/infrastructure-provisioning/src/base/scripts/configure_keycloak.py
index d5df582..5974b2c 100644
--- a/infrastructure-provisioning/src/base/scripts/configure_keycloak.py
+++ b/infrastructure-provisioning/src/base/scripts/configure_keycloak.py
@@ -48,7 +48,6 @@ args = parser.parse_args()
 if __name__ == "__main__":
     try:
         logging.info('[CONFIGURE KEYCLOAK]')
-        print(args)
         keycloak_auth_server_url = 
'{}/realms/master/protocol/openid-connect/token'.format(
             args.keycloak_auth_server_url)
         keycloak_auth_data = {
@@ -88,15 +87,13 @@ if __name__ == "__main__":
 
         try:
             keycloak_token = requests.post(keycloak_auth_server_url, 
data=keycloak_auth_data, verify=False).json()
-            print(keycloak_token)
             keycloak_client = requests.post(keycloak_client_create_url, 
json=keycloak_client_data,
                                             headers={"Authorization": "Bearer 
" + keycloak_token.get("access_token"),
                                                      "Content-Type": 
"application/json"}, verify=False)
-            print(keycloak_client)
 
         except Exception as err:
             append_result("Failed to configure keycloak.")
             raise Exception
     except Exception as err:
-        print('Error: {0}'.format(err))
+        logging.error('Error: {0}'.format(err))
         append_result("Failed to configure keycloak.", str(err))
\ No newline at end of file

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

Reply via email to