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: