Browse Source

TransipProvider python3

pull/384/head
Ross McFarland 6 years ago
parent
commit
90a60d3dbd
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      octodns/provider/transip.py
  2. +2
    -2
      tests/test_octodns_provider_transip.py

+ 1
- 1
octodns/provider/transip.py View File

@ -137,7 +137,7 @@ class TransipProvider(BaseProvider):
try:
self._client.get_info(plan.desired.name[:-1])
except WebFault as e:
self.log.warning('_apply: %s ', e.message)
self.log.exception('_apply: get_info failed')
raise e
_dns_entries = []


+ 2
- 2
tests/test_octodns_provider_transip.py View File

@ -5,8 +5,8 @@
from __future__ import absolute_import, division, print_function, \
unicode_literals
# from mock import Mock, call
from os.path import dirname, join
from six import text_type
from suds import WebFault
@ -176,7 +176,7 @@ N4OiVz1I3rbZGYa396lpxO6ku8yCglisL1yrSP6DdEUp66ntpKVd
self.assertEquals(
'populate: (102) Transip used as target' +
' for non-existing zone: notfound.unit.tests.',
ctx.exception.message)
text_type(ctx.exception))
# Happy Plan - Zone does not exists
# Won't trigger an exception if provider is NOT used as a target for a


Loading…
Cancel
Save