From a96870e09266f19f4f29bab0d0c268ca1cb6c876 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 15 Nov 2021 15:19:07 +0200 Subject: [PATCH] Add admonition in case only username or password were provided --- apiserver/es_factory.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apiserver/es_factory.py b/apiserver/es_factory.py index 311706c..cf3ca24 100644 --- a/apiserver/es_factory.py +++ b/apiserver/es_factory.py @@ -126,6 +126,10 @@ class ESFactory: if username and password: cluster_config.set("http_auth", (username, password)) + elif not username: + log.info(f"Ignoring username/password since username is empty or not provided") + elif not password: + log.info(f"Ignoring username/password since password is empty or not provided") return cluster_config