From 2491f64a43f11cd2df370bd196f07074ca20f47c 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: Thu, 9 Sep 2021 12:32:37 +0300 Subject: [PATCH] fixed value modification for print --- pym/cl_ldap.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pym/cl_ldap.py b/pym/cl_ldap.py index 2a2d8d0..9611175 100644 --- a/pym/cl_ldap.py +++ b/pym/cl_ldap.py @@ -14496,7 +14496,7 @@ class cl_info(cl_utils2.cl_smartcon, prnServ): forwardZones = [x for x in slaveZones if '.in-addr.arpa' not in x] # Формирование строки для отчета title=_("Information about the slave DNS zones in \ -/etc/bind/named.conf") + /etc/bind/named.conf") headerList = [_("DNS zone"),_("IP master DNS servers")] dataList = [[x] for x in forwardZones + reverseZones] dataList = [dataList[x] + [slaveIPs[x]] for x in range(len(dataList))] @@ -15500,17 +15500,17 @@ with another option.")) retValue = self._getUserGroupName(retValue, service) # Ставим Y в случае выставленного флага elif attr == "initials": - if value == "No": + if retValue == "No": retValue = _("Yes") else: retValue = _("No") elif attr == "accountStatus": - if value == "passive": + if retValue == "passive": retValue = _("Yes") else: retValue = _("No") elif attr == "shadowExpire": - if value == "1": + if retValue == "1": retValue = _("Yes") else: retValue = _("No") @@ -15520,12 +15520,12 @@ with another option.")) else: retValue = _("No") elif attr == "userPassword": - if value == "crypt{xxx}": + if retValue == "crypt{xxx}": retValue = _("No") else: retValue = _("Yes") elif attr == "shadowFlag": - if value == "1": + if retValue == "1": retValue = _("Yes") else: retValue = _("No")