diff --git a/resources/progress_to_es.py b/resources/progress_to_es.py index 30fd159..b805f00 100644 --- a/resources/progress_to_es.py +++ b/resources/progress_to_es.py @@ -213,10 +213,12 @@ def main(): logging.basicConfig(level=getattr(logging, args.log_level.upper()), format='%(asctime)s %(levelname)s %(name)s : %(message)s') - es_api = ClientCredentialsAuth(address=config['ES_ADDRESS'], - token_url=args.token_url, - client_secret=args.es_client_secret, - client_id=args.es_client_id) + es_api = ClientCredentialsAuth( + address=config['ES_ADDRESS'], + token_url=args.token_url, + client_secret=args.es_client_secret, + client_id=args.es_client_id + ) es_token = es_api.make_access_token() if args.from_file: