mirror of
				https://github.com/github/octodns.git
				synced 2024-05-11 05:55:00 +00:00 
			
		
		
		
	Fix 'server error: zone not found' for NS1 provider
This commit is contained in:
		@@ -8,8 +8,8 @@ from __future__ import absolute_import, division, print_function, \
 | 
			
		||||
from logging import getLogger
 | 
			
		||||
from itertools import chain
 | 
			
		||||
from collections import OrderedDict, defaultdict
 | 
			
		||||
from nsone import NSONE
 | 
			
		||||
from nsone.rest.errors import RateLimitException, ResourceException
 | 
			
		||||
from ns1 import NS1
 | 
			
		||||
from ns1.rest.errors import RateLimitException, ResourceException
 | 
			
		||||
from incf.countryutils import transformations
 | 
			
		||||
from time import sleep
 | 
			
		||||
 | 
			
		||||
@@ -36,7 +36,7 @@ class Ns1Provider(BaseProvider):
 | 
			
		||||
        self.log = getLogger('Ns1Provider[{}]'.format(id))
 | 
			
		||||
        self.log.debug('__init__: id=%s, api_key=***', id)
 | 
			
		||||
        super(Ns1Provider, self).__init__(id, *args, **kwargs)
 | 
			
		||||
        self._client = NSONE(apiKey=api_key)
 | 
			
		||||
        self._client = NS1(apiKey=api_key)
 | 
			
		||||
 | 
			
		||||
    def _data_for_A(self, _type, record):
 | 
			
		||||
        # record meta (which would include geo information is only
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user