Skip to content

Commit

Permalink
fixing black formatter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathbrp committed Dec 18, 2023
1 parent cf5069d commit 2739348
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions opl/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@

import requests
from requests.auth import HTTPBasicAuth

import urllib3
import os

enable_new_search = os.getenv('NEW_SEARCH_ENABLED', 'false').lower() == 'true'
enable_new_search = os.getenv("NEW_SEARCH_ENABLED", "false").lower() == "true"

if enable_new_search:
username = os.getenv('OPEN_SEARCH_DASBOARD')
password = os.getenv('OPEN_SEARCH_PASSWORD')
username = os.getenv("OPEN_SEARCH_USERNAME")
password = os.getenv("OPEN_SEARCH_PASSWORD")
session = requests.Session()
session.auth = HTTPBasicAuth(username, password)
session.verify = False
session.headers.update({
"Content-Type": "application/json",
})
session.headers.update(
{
"Content-Type": "application/json",
}
)
else:
session = requests.Session()

Expand Down

0 comments on commit 2739348

Please sign in to comment.