Update firewall_api.py
This commit is contained in:
parent
18b36b08a7
commit
e0e889bbff
|
|
@ -214,7 +214,7 @@ class firewall_api:
|
|||
|
||||
data['pass_prohibit_status'] = False
|
||||
# 密码登陆配置检查
|
||||
pass_rep = "^PasswordAuthentication\s+(\w*)\s*\n"
|
||||
pass_rep = "PasswordAuthentication\s+(\w*)\s*\n"
|
||||
pass_status = re.search(pass_rep, conf)
|
||||
if pass_status:
|
||||
if pass_status and pass_status.groups(0)[0].strip() == 'no':
|
||||
|
|
|
|||
Loading…
Reference in New Issue