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_luadns_client(self):
return _LuaDNSLexiconClient(self.credentials.conf('email'),
self.credentials.conf('token'),
self.ttl)
def __init__(self, email, token, ttl):
super(_LuaDNSLexiconClient, self).__init__()
config = dns_common_lexicon.build_lexicon_config('luadns', {
'ttl': ttl,
}, {
'auth_username': email,
'auth_token': token,
})
self.provider = luadns.Provider(config)