From f8484efdcd464df3775285186e886fd67146b322 Mon Sep 17 00:00:00 2001 From: yarden-slon Date: Sun, 14 Aug 2022 18:15:45 +0300 Subject: [PATCH 1/2] Fix get to index_config --- pinecone/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinecone/manage.py b/pinecone/manage.py index a38695bf..c83a49a9 100644 --- a/pinecone/manage.py +++ b/pinecone/manage.py @@ -201,7 +201,7 @@ def describe_index(name: str): return IndexDescription(name=db['name'], metric=db['metric'], replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'], pods=db.get('pods', db['shards'] * db['replicas']), pod_type=db.get('pod_type', 'p1'), - index_config=db['index_config'], status={'ready': ready, 'state': state}, + index_config=db.get('index_config'), status={'ready': ready, 'state': state}, metadata_config=db.get('metadata_config'), source_collection=db.get('source_collection', '')) From ddd885135d4aa42e3f9f1a676649d5ab916da129 Mon Sep 17 00:00:00 2001 From: yarden-slon Date: Sun, 14 Aug 2022 18:22:24 +0300 Subject: [PATCH 2/2] remove index_config --- pinecone/manage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pinecone/manage.py b/pinecone/manage.py index c83a49a9..b71b7ef9 100644 --- a/pinecone/manage.py +++ b/pinecone/manage.py @@ -29,7 +29,6 @@ class IndexDescription(NamedTuple): shards: int pods: int pod_type: str - index_config: None status: None metadata_config: None source_collection: None @@ -201,8 +200,7 @@ def describe_index(name: str): return IndexDescription(name=db['name'], metric=db['metric'], replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'], pods=db.get('pods', db['shards'] * db['replicas']), pod_type=db.get('pod_type', 'p1'), - index_config=db.get('index_config'), status={'ready': ready, 'state': state}, - metadata_config=db.get('metadata_config'), + status={'ready': ready, 'state': state}, metadata_config=db.get('metadata_config'), source_collection=db.get('source_collection', ''))