We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364c791 commit 84f7678Copy full SHA for 84f7678
scripts/hostcfgd
@@ -1126,7 +1126,7 @@ class SshServer(object):
1126
if key == "inactivity_timeout":
1127
# translate min to sec.
1128
value = int(value) * 60
1129
- elif key in [ "permit_root_login", "password_authentication" ]:
+ elif key == "password_authentication":
1130
# translate boolean to yes/no
1131
if isinstance(value, str):
1132
value = "no" if value.lower() in [ "false" ] else "yes"
tests/hostcfgd/test_ssh_server_vectors.py
@@ -214,7 +214,7 @@
214
"ports": "22",
215
"inactivity_timeout": "15",
216
"max_sessions": "0",
217
- "permit_root_login": "false"
+ "permit_root_login": "no"
218
}
219
},
220
"DEVICE_METADATA": {
0 commit comments