From 89a097ea0ad9724210091e299a6cab1bf132019e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 13 Jun 2020 22:35:38 +0200 Subject: ssh: T2321: fix invalid string/list assignment of default port Commit 5deb12c509be ("ssh: T2321: add VRF support") restructured the Port assignment (cleanup from the early days) but it accesses a string with methods used for a list, resulting in the funny default port 2. --- src/conf_mode/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py index 5a0ae059b..ef70de7be 100755 --- a/src/conf_mode/ssh.py +++ b/src/conf_mode/ssh.py @@ -31,7 +31,7 @@ config_file = r'/etc/ssh/sshd_config' systemd_override = r'/etc/systemd/system/ssh.service.d/override.conf' default_config_data = { - 'port' : '22', + 'port' : ['22'], 'log_level': 'INFO', 'password_authentication': 'yes', 'host_validation': 'yes', -- cgit v1.2.3