diff --git a/certbot_dns_ispconfig/dns_ispconfig.py b/certbot_dns_ispconfig/dns_ispconfig.py index a49eb9c..f135afc 100644 --- a/certbot_dns_ispconfig/dns_ispconfig.py +++ b/certbot_dns_ispconfig/dns_ispconfig.py @@ -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: diff --git a/setup.py b/setup.py index 753a33f..e717622 100644 --- a/setup.py +++ b/setup.py @@ -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.