You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by GitBox <gi...@apache.org> on 2021/07/23 22:08:12 UTC

[GitHub] [ranger] alvaroqueiroz commented on a change in pull request #110: Python ranger_client call_api - add case for 404 response

alvaroqueiroz commented on a change in pull request #110:
URL: https://github.com/apache/ranger/pull/110#discussion_r675888346



##########
File path: intg/src/main/python/apache_ranger/client/ranger_client.py
##########
@@ -324,6 +324,11 @@ def __call_api(self, api, query_params=None, request_data=None):
             LOG.error("Ranger admin unavailable. HTTP Status: %s", HTTPStatus.SERVICE_UNAVAILABLE)
 
             ret = None
+        elif response.status_code == HTTPStatus.SERVICE_NOT_FOUND:

Review comment:
       thanks for the comments @mneethiraj, it makes sense




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org