Teradata / PyTd

A Python Module to make it easy to script powerful interactions with Teradata Database in a DevOps friendly way.
MIT License
108 stars 43 forks source link

Port not working when part of config #69

Closed johnrc closed 7 years ago

johnrc commented 7 years ago

I have a config file where the port is declared. Like so:

# Default Data Source Configuration
[DEFAULT]
method=rest
host=my.example.com
port=1443
protocol=https
charset=UTF8

Whenever this is used it throws an exception because the config keys and values are converted in unicode. Unfortunately, httplib.HTTPSConnection() only accepts a number or string for the port value.

InterfaceError: ('REST_ERROR', 'Error accessing my.example.com:1443. ERROR:  getaddrinfo() argument 2 must be integer or string')

PR #68 fixes this issue.

escheie commented 7 years ago

Fixed by 269b916.