Skip to content

Commit 27bf22f

Browse files
committed
Modified generator to generate plugins
Signed-off-by: saimedhi <saimedhi@amazon.com>
1 parent 2c0cf07 commit 27bf22f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test_opensearchpy/test_server/test_plugins/test_knn.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ def test_knn_model(self) -> None:
8585

8686
# Fetch the model state
8787
try:
88-
response = self.client.plugins.knn.get_model(model_id=model_id, filter_path='state')['state']
88+
response = self.client.plugins.knn.get_model(model_id='my-model')
8989
if response['state'] != 'training':
9090
pass
91-
except Exception as e:
92-
print(f"Error fetching knn model: {e}")
91+
except Exception as error:
92+
print(f"Error fetching knn model: {error}")
93+
break
9394

9495
# Sleep for 1 minute before the next attempt
9596
time.sleep(10)

0 commit comments

Comments
 (0)