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