fixed replacement of zone postfix

This commit is contained in:
Matthias Bilger 2019-08-15 20:01:00 +02:00
parent cef0a0b330
commit 534ea3a78e
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ class _ISPConfigClient(object):
raise errors.PluginError("Domain not known")
logger.debug('domain found: %s with id: %d', zone_name, zone_id)
o_record_name = record_name
record_name = record_name.replace(zone_name, '')
record_name = record_name.replace(zone_name, '')[:-1]
logger.debug('using record_name: %s from original: %s', record_name, o_record_name)
record = self.get_existing_txt(zone_id, record_name)
if record is not None:
@ -152,7 +152,7 @@ class _ISPConfigClient(object):
raise errors.PluginError("Domain not known")
logger.debug('domain found: %s with id: %d', zone_name, zone_id)
o_record_name = record_name
record_name = record_name.replace(zone_name, '')
record_name = record_name.replace(zone_name, '')[:-1]
logger.debug('using record_name: %s from original: %s', record_name, o_record_name)
record = self.get_existing_txt(zone_id, record_name)
if record is not None:

View File

@ -1,7 +1,7 @@
from setuptools import setup
from setuptools import find_packages
version = '0.1.3'
version = '0.1.5'
# Remember to update local-oldest-requirements.txt when changing the minimum
# acme/certbot version.