Lexicon v3 compatibility (#6474)

* Propagate correctly domain to lexicon providers

* Pass required parameter to ovh provider

* Fix all other lexicon-based dns plugins
This commit is contained in:
Adrien Ferrand
2018-11-05 14:07:09 -08:00
committed by Brad Warren
parent 9403c1641d
commit bc7763dd0f
10 changed files with 15 additions and 1 deletions
+6 -1
View File
@@ -68,7 +68,12 @@ class LexiconClient(object):
for domain_name in domain_name_guesses:
try:
self.provider.options['domain'] = domain_name
if hasattr(self.provider, 'options'):
# For Lexicon 2.x
self.provider.options['domain'] = domain_name
else:
# For Lexicon 3.x
self.provider.domain = domain_name
self.provider.authenticate()