Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: kalyan <[email protected]>
  • Loading branch information
rawwar committed Dec 1, 2023
1 parent 3ead561 commit f875e50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opensearch_py_ml/ml_commons/ml_commons_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from deprecated.sphinx import deprecated
from opensearchpy import OpenSearch

from opensearch_py_ml.ml_commons.model_connector import Connector
from opensearch_py_ml.ml_commons.ml_common_utils import (
ML_BASE_URI,
MODEL_FORMAT_FIELD,
Expand All @@ -23,6 +22,7 @@
TIMEOUT,
)
from opensearch_py_ml.ml_commons.model_access_control import ModelAccessControl
from opensearch_py_ml.ml_commons.model_connector import Connector
from opensearch_py_ml.ml_commons.model_execute import ModelExecute
from opensearch_py_ml.ml_commons.model_uploader import ModelUploader

Expand Down
1 change: 0 additions & 1 deletion opensearch_py_ml/ml_commons/model_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def create_standalone_connector(self, payload: dict):
method="POST", url=f"{ML_BASE_URI}/connectors/_create", body=payload
)


def list_connectors(self):
search_query = {"query": {"match_all": {}}}
return self.search_connectors(search_query)
Expand Down
1 change: 1 addition & 0 deletions tests/ml_commons/test_model_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
OPENSEARCH_VERSION = parse_version(os.environ.get("OPENSEARCH_VERSION", "2.11.0"))
CONNECTOR_MIN_VERSION = parse_version("2.9.0")


@pytest.fixture
def client():
return Connector(OPENSEARCH_TEST_CLIENT)
Expand Down

0 comments on commit f875e50

Please sign in to comment.