fixed value modification for print

py3_forced
parent 25c8045ffd
commit 2491f64a43

@ -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")

Loading…
Cancel
Save