Correct typo that broke the script with TLS
This commit is contained in:
parent
1ce1c9b693
commit
2dc4720792
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -21,10 +21,11 @@ config.read(path+'/config.ini')
|
||||||
api_hostname = config.get('Re2o', 'hostname')
|
api_hostname = config.get('Re2o', 'hostname')
|
||||||
api_password = config.get('Re2o', 'password')
|
api_password = config.get('Re2o', 'password')
|
||||||
api_username = config.get('Re2o', 'username')
|
api_username = config.get('Re2o', 'username')
|
||||||
|
|
||||||
if 'use_tls' in config['Re2o']:
|
if 'use_tls' in config['Re2o']:
|
||||||
use_tls = config.get('Re2o', 'use_tls')
|
use_tls = config.get('Re2o', 'use_tls')
|
||||||
else:
|
else:
|
||||||
us_tls = False
|
use_tls = False
|
||||||
|
|
||||||
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=use_tls)
|
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=use_tls)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue