erm. use the .str attr. otherwise we get the class name. duh.
This commit is contained in:
parent
58e495bf41
commit
a8475d9001
@ -212,7 +212,7 @@ class TunnelBroker(object):
|
|||||||
logger.debug('Requesting IP update at provider.')
|
logger.debug('Requesting IP update at provider.')
|
||||||
req = requests.get(self.url_api,
|
req = requests.get(self.url_api,
|
||||||
params = {'hostname': str(self.tun.id),
|
params = {'hostname': str(self.tun.id),
|
||||||
'myip': str(self.my_ip)},
|
'myip': self.my_ip.str},
|
||||||
auth = auth_handler)
|
auth = auth_handler)
|
||||||
if not req.ok:
|
if not req.ok:
|
||||||
logger.error('Could not update IP at provider. Request returned {0}.'.format(req.status_code))
|
logger.error('Could not update IP at provider. Request returned {0}.'.format(req.status_code))
|
||||||
|
Loading…
Reference in New Issue
Block a user