From c7abb6dd5d128ce79ad751015858f4191540cd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=94=D0=B7=D1=8E=D0=B1=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Tue, 21 Sep 2021 17:53:33 +0300 Subject: [PATCH] removed intendation from templates --- pym/cl_ldap.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pym/cl_ldap.py b/pym/cl_ldap.py index 2f98e99..8d86000 100644 --- a/pym/cl_ldap.py +++ b/pym/cl_ldap.py @@ -16904,10 +16904,10 @@ class dnsTxt(cl_profile.bind,shareTxt): dnsDN = "ou=Forward,%s"%dnsBaseDN #TODO intendation breaks config template = 'zone "%s" in {\n\ - \ttype %s;\n\ - \tdatabase "ldap ldap://127.0.0.1/zoneName=%s,%s????\ - !bindname=%s,!x-bindpw=%s 178600";\n\ - };' %(zoneName,zoneType,zoneName,dnsDN,dnsCommaSplDN,dnsBasePw) +\ttype %s;\n\ +\tdatabase "ldap ldap://127.0.0.1/zoneName=%s,%s????\ +!bindname=%s,!x-bindpw=%s 178600";\n\ +};' %(zoneName,zoneType,zoneName,dnsDN,dnsCommaSplDN,dnsBasePw) return template elif zoneType == "slave": if not zoneMasters: @@ -16917,10 +16917,10 @@ class dnsTxt(cl_profile.bind,shareTxt): return False zoneFile = "%s.zone" %zoneName.split(".in-addr.arpa")[0] template = 'zone "%s" {\n\ - \ttype %s;\n\ - \tfile "sec/%s";\n\ - \tmasters { %s; };\n\ - };' %(zoneName,zoneType,zoneFile, "; ".join(zoneMasters)) +\ttype %s;\n\ +\tfile "sec/%s";\n\ +\tmasters { %s; };\n\ +};' %(zoneName,zoneType,zoneFile, "; ".join(zoneMasters)) return template else: self.setError(_('DNS zone type %s unsupported')%zoneType)