Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_dnsimple_client(self):
return _DNSimpleLexiconClient(self.credentials.conf('token'), self.ttl)
def __init__(self, token, ttl):
super(_DNSimpleLexiconClient, self).__init__()
config = dns_common_lexicon.build_lexicon_config('dnssimple', {
'ttl': ttl,
}, {
'auth_token': token,
})
self.provider = dnsimple.Provider(config)