diff --git a/management/backup.py b/management/backup.py index a8e2444f..7dfd7619 100755 --- a/management/backup.py +++ b/management/backup.py @@ -463,7 +463,7 @@ def list_target_files(config): target_path = target.path if not target_path.endswith('/'): - target_path = target_path + '/' + target_path += "/" if target_path.startswith('/'): target_path = target_path[1:] diff --git a/management/dns_update.py b/management/dns_update.py index 1cc8a0da..ffb97ebe 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -918,7 +918,7 @@ def set_custom_dns_record(qname, rtype, value, action, env): # ensure value has a trailing dot if not value.endswith("."): - value = value + "." + value += "." if not re.search(DOMAIN_RE, value): msg = "Invalid value."