Skip to content

Commit

Permalink
remove params.get('proxy') == 'true' from templates (#15187)
Browse files Browse the repository at this point in the history
* remove params.get('proxy') == 'true' from templates

* revert import changes

* revert import changes

* revert import changes
  • Loading branch information
yuvalbenshalom committed Oct 6, 2021
1 parent d57b505 commit 5962d26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Templates/Integrations/Authentication/Authentication.py
Expand Up @@ -421,7 +421,7 @@ def main(): # pragma: no cover
params = demisto.params()
base_url = f"{params.get('url', '').rstrip('/')}'/api/v1'"
verify = not params.get('insecure', False)
proxy = params.get('proxy') == 'true'
proxy = params.get('proxy')
client = Client(base_url, verify=verify, proxy=proxy)
command = demisto.command()
demisto.info(f'Command being called is {command}')
Expand Down
2 changes: 1 addition & 1 deletion Templates/Integrations/CaseManagement/CaseManagement.py
Expand Up @@ -385,7 +385,7 @@ def main():
params = demisto.params()
server = params.get('url')
use_ssl = not params.get('insecure', False)
use_proxy = params.get('proxy') == 'true'
use_proxy = params.get('proxy')
client = Client(server, use_ssl=use_ssl, proxy=use_proxy)
command = demisto.command()
demisto.debug(f'Command being called is {command}')
Expand Down
Expand Up @@ -342,7 +342,7 @@ def main(): # pragma: no cover
params = demisto.params()
base_url = urljoin(params.get('url'), '/api/v2')
verify = not params.get('insecure', False)
proxy = params.get('proxy') == 'true'
proxy = params.get('proxy')
threshold = int(params.get('threshold', DEFAULT_THRESHOLD))
client = Client(
base_url,
Expand Down
4 changes: 2 additions & 2 deletions Templates/Integrations/Database/Database.py
Expand Up @@ -108,8 +108,8 @@ def main():
password = params.get('credentials').get('password')
server = urljoin(params.get('url'), '/api/v2.0/')
# Should we use SSL
use_ssl = not params.get('insecure') == 'true'
use_proxy = params.get('proxy') == 'true'
use_ssl = not params.get('insecure')
use_proxy = params.get('proxy')
# Headers to be sent in requests
headers = {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 5962d26

Please sign in to comment.