mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] raw string for correct escape sequence
This commit is contained in:
parent
87435775ee
commit
2aa5e7f640
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ def dyndns_update(operation_logger, dyn_host="dyndns.yunohost.org", domain=None,
|
||||||
# should be muc.the.domain.tld. or the.domain.tld
|
# should be muc.the.domain.tld. or the.domain.tld
|
||||||
if record["value"] == "@":
|
if record["value"] == "@":
|
||||||
record["value"] = domain
|
record["value"] = domain
|
||||||
record["value"] = record["value"].replace(";", "\;")
|
record["value"] = record["value"].replace(";", r"\;")
|
||||||
|
|
||||||
action = "update add {name}.{domain}. {ttl} {type} {value}".format(domain=domain, **record)
|
action = "update add {name}.{domain}. {ttl} {type} {value}".format(domain=domain, **record)
|
||||||
action = action.replace(" @.", " ")
|
action = action.replace(" @.", " ")
|
||||||
|
|
Loading…
Add table
Reference in a new issue