Correct typo that broke the script with TLS

This commit is contained in:
otthorn 2021-02-04 15:54:02 +01:00
parent 1ce1c9b693
commit 2dc4720792

View file

@ -21,10 +21,11 @@ config.read(path+'/config.ini')
api_hostname = config.get('Re2o', 'hostname')
api_password = config.get('Re2o', 'password')
api_username = config.get('Re2o', 'username')
if 'use_tls' in config['Re2o']:
use_tls = config.get('Re2o', 'use_tls')
else:
us_tls = False
use_tls = False
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=use_tls)