From d34e86cc62802b6abecd714a44542979e81883dd Mon Sep 17 00:00:00 2001 From: DosticJelena Date: Wed, 11 Oct 2023 13:07:12 +0200 Subject: [PATCH] change method for retrieving env vars - it threat detection --- docs/it-threat-detection.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/it-threat-detection.ipynb b/docs/it-threat-detection.ipynb index 34c703e..4fe7c32 100644 --- a/docs/it-threat-detection.ipynb +++ b/docs/it-threat-detection.ipynb @@ -112,9 +112,9 @@ "import os\n", "\n", "# Load Pinecone API key\n", - "api_key = os.getenv('PINECONE_API_KEY') or 'PINECONE_API_KEY'\n", + "api_key = os.environ.get('PINECONE_API_KEY') or 'PINECONE_API_KEY'\n", "# Set Pinecone environment/region - find next to API key in console\n", - "env = os.getenv('PINECONE_ENVIRONMENT') or 'PINECONE_ENVIRONMENT'\n", + "env = os.environ.get('PINECONE_ENVIRONMENT') or 'PINECONE_ENVIRONMENT'\n", "\n", "pinecone.init(api_key=api_key, environment=env)" ]